Linux Makefile updates

This commit is contained in:
Jordan Carlin 2025-01-04 08:22:39 -08:00
parent 336e4d433d
commit 15ec39d20f
No known key found for this signature in database

View File

@ -1,19 +1,11 @@
BUILDROOT := buildroot BUILDROOT := buildroot
IMAGES := ${BUILDROOT}/output/images IMAGES := ${BUILDROOT}/output/images
WALLY := $(shell dirname $(shell pwd)) WALLYLINUX := $(WALLY)/linux
WALLYLINUX := $(shell pwd)
DIS := ${IMAGES}/disassembly DIS := ${IMAGES}/disassembly
BRPACKAGES := $(WALLYLINUX)/buildroot-packages BR2_EXTERNAL_TREE := $(WALLYLINUX)/br2-external-tree
# 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) SUDO := $(shell mkdir -p $(RISCV)/.test > /dev/null 2>&1 || echo sudo)
SUDO :=
else
SUDO := sudo
endif
# Buildroot Config Stuff
BR2_EXTERNAL_TREE := $(WALLYLINUX)/br2-external-tree
# Device tree files # Device tree files
DTS ?= $(shell find devicetree -type f -regex ".*\.dts" | sort) DTS ?= $(shell find devicetree -type f -regex ".*\.dts" | sort)