335 words
2 minutes
Building the ROM

*These are some notes that I made to reference because getting this to work wasn’t something that was easy to Google at the time.

1. Use Chocolaty to install make. (Must use Command Prompt in admin mode) 2. Setup Path Env variables for rgbasm. 3. Use Command Prompt to run make command in project directory. 4. Ignore checksum error. Its really just a warning and it will always happen. 5. You should now see a .rom file. Things to do: [Learn more about WSL](https://learn.microsoft.com/en-us/windows/wsl/). I have like 4 shells now and I hate it, but mixing linux and windows commands is pretty cool. I think I need to add pathing for the things that Chocolaty installs. Whenever a new command line tool is added in WSL I will need to add an alias to use the tool to point to toolName.exe.

Instead of using Chocolaty I have the rgbds folder in my C: root. Inside this folder is the built release from the official Github. A Path env variable is set to this folder which allows the .exe’s inside of this folder to be accessed by command line.

YOU CANNOT USE GIT BASH to run this Makefile... It appears to mess up in one of the compression steps (a non-rgbasm command). From CMD - C:... setx WSLENV PATH/up This command allows WSL to use the PATH env variable. Linux does not recognize *.exe files. In Ubuntu shell: $ rgbasm Command 'rgbasm' not found, did you mean: ... Instead you must run: $ rgbasm.exe In Makefile you MUST change: RGBDS ?= RGBASM  ?= $(RGBDS)rgbasm RGBFIX  ?= $(RGBDS)rgbfix RGBGFX  ?= $(RGBDS)rgbgfx RGBLINK ?= $(RGBDS)rgblink TO: RGBDS ?= RGBASM  ?= $(RGBDS)rgbasm.exe RGBFIX  ?= $(RGBDS)rgbfix.exe RGBGFX  ?= $(RGBDS)rgbgfx.exe RGBLINK ?= $(RGBDS)rgblink.exe

Instead, I went back to this and downloaded the Linux distribution source on the release page of rgbds v0.7.0. I downloaded rgbds-0.7.0.tar.gz, copied it to /user/local/bin: sudo cp /mnt/c/Users/E-M-B-E-R/Downloads/rgbds-0.7.0-linux-x86_64.tar.xz /usr/local/bin and then unziped it using tar: sudo tar -xf rgbds-0.7.0-linux-x86_64.tar.xz

Now I can just type rgbasm instead of rgbasm.exe .

Building the ROM
https://fuwari.vercel.app/posts/rom-hacking/building-the-rom/
Author
E-M-B-E-R
Published at
2024-04-03