This whole issue with $HOME is why I switched to what OSX made "standard" - using /opt. It's now very common for toolchains to go into /opt/toolchains/<platform>, which is what I use. Of course, that doesn't help KOS_BASE any. My environ.sh usesStryfe wrote:Have you tried the full path instead of the '$(HOME)' variable, or even just '$HOME' without brackets?root670 wrote:I'm having similar problems trying to get the toolchain to build. I'm running Ubuntu 11.10 x64. I grabbed the latest revision with SVN and ran the download.sh script, followed by the unpack.sh script. Before running make, I changed the prefixes to this:Code: Select all
sh_prefix := $(HOME)/Dreamcast/dc/toolchain/$(sh_target) arm_prefix := $(HOME)/Dreamcast/dc/toolchain/$(arm_target)
Code: Select all
export KOS_BASE="/home/jlfenton/Projects/Dreamcast/kos"
export KOS_CC_BASE="/opt/toolchains/dc/sh-elf" # DC
export DC_ARM_BASE="/opt/toolchains/dc/arm-elf"
export PATH="${PATH}:${KOS_CC_BASE}/bin:/opt/toolchains/dc/bin"
In the makefile for the toolchain, I just have the prefixes set like this:
Code: Select all
sh_prefix := /opt/toolchains/dc/$(sh_target)
arm_prefix := /opt/toolchains/dc/$(arm_target)