Update linux makefile to use br2 external tree

This commit is contained in:
Jordan Carlin 2025-01-03 16:21:34 -08:00
parent 66b2e2108b
commit fc5583d230
No known key found for this signature in database

View File

@ -4,7 +4,6 @@ WALLY := $(shell dirname $(shell pwd))
WALLYLINUX := $(shell pwd) WALLYLINUX := $(shell pwd)
DIS := ${IMAGES}/disassembly DIS := ${IMAGES}/disassembly
BRPACKAGES := $(WALLYLINUX)/buildroot-packages BRPACKAGES := $(WALLYLINUX)/buildroot-packages
BR2023 := $(WALLYLINUX)/buildroot-config-src/buildroot-2023.05.1
# set sudo if needed depending on $RISCV # set sudo if needed depending on $RISCV
ifeq ($(shell mkdir -p $(RISCV)/.test > /dev/null 2>&1 ; echo $$?), 0) ifeq ($(shell mkdir -p $(RISCV)/.test > /dev/null 2>&1 ; echo $$?), 0)
@ -14,8 +13,7 @@ else
endif endif
# Buildroot Config Stuff # Buildroot Config Stuff
WALLYBOARDSRC := $(WALLYLINUX)/buildroot-config-src/wally BR2_EXTERNAL_TREE := $(WALLYLINUX)/br2-external-tree
WALLYBOARD := $(BUILDROOT)/board/wally
# Device tree files # Device tree files
DTS ?= $(shell find devicetree -type f -regex ".*\.dts" | sort) DTS ?= $(shell find devicetree -type f -regex ".*\.dts" | sort)
@ -105,15 +103,10 @@ $(IMAGES)/busybox:
cp $$busyboxDir/busybox $@ ;\ cp $$busyboxDir/busybox $@ ;\
# Generating new Buildroot directories -------------------------------- # Generating new Buildroot directories --------------------------------
download: $(WALLYBOARD) download: $(BUILDROOT)
cd $(BUILDROOT) && make wally_defconfig cd $(BUILDROOT) && make wally_defconfig BR2_EXTERNAL=$(BR2_EXTERNAL_TREE)
@echo "Buildroot successfully download." @echo "Buildroot successfully download."
# CONFIG DEPENDENCIES 2023.05.1 ---------------------------------------
$(WALLYBOARD): $(BUILDROOT)
cp -r $(WALLYBOARDSRC) $(BUILDROOT)/board
cp $(WALLYBOARDSRC)/wally_defconfig $(BUILDROOT)/configs/wally_defconfig
$(BUILDROOT): $(BUILDROOT):
git clone https://github.com/buildroot/buildroot.git $@ git clone https://github.com/buildroot/buildroot.git $@
cd $@; git checkout 2023.05.x cd $@; git checkout 2023.05.x