Fix BUILD_DIR var in demo Makefile

This commit is contained in:
Aadi Desai 2023-06-08 11:22:25 +01:00
parent 8be509cd90
commit 5bf1833a03
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ if [[ $REBUILD =~ ^[Yy]$ ]]; then
cp -r build/gsd_orangecrab/doc/_build/html docs/ && echo "Copied docs to project root" cp -r build/gsd_orangecrab/doc/_build/html docs/ && echo "Copied docs to project root"
else echo "Skipping Rebuild" else echo "Skipping Rebuild"
fi fi
BUILD_DIR=`realpath -eL build/gsd_orangecrab/` WITH_CXX=1 make -C demo && echo "Built demo files" make -C demo && echo "Built demo files"
mv demo/demo.bin kernel.bin && echo "Moved kernel binary to project root" mv demo/demo.bin kernel.bin && echo "Moved kernel binary to project root"
rm -f demo/*.o demo/*.d demo/demo.elf demo/demo.elf.map && echo "Cleaned up build artifacts" rm -f demo/*.o demo/*.d demo/demo.elf demo/demo.elf.map && echo "Cleaned up build artifacts"
read -p "Flash OrangeCrab? [y/N]" -n 1 -r FLASH_OC read -p "Flash OrangeCrab? [y/N]" -n 1 -r FLASH_OC

View file

@ -1,4 +1,4 @@
BUILD_DIR?=../build/ BUILD_DIR?=../build/gsd_orangecrab/
include $(BUILD_DIR)/software/include/generated/variables.mak include $(BUILD_DIR)/software/include/generated/variables.mak
include $(SOC_DIRECTORY)/software/common.mak include $(SOC_DIRECTORY)/software/common.mak