Files
bsp/Makefile
Nick Mello 78246cac78 Initial Commit
This is the initial commit to get the arcade build system setup

Signed-off-by: Nicholas Mello <nick@nmello.dev>
2025-09-27 17:38:44 -05:00

27 lines
636 B
Makefile

BR2_EXTERNAL := $(CURDIR)
BR_DIR := $(CURDIR)/buildroot
OUTPUT_DIR := $(CURDIR)/output
BR_MAKE := $(MAKE) -C $(BR_DIR) O=$(CURDIR)/output/ BR2_EXTERNAL=$(BR2_EXTERNAL)
.PHONY: init-submodule
init-submodule:
@if [ ! -d "$(BR_DIR)/.git" ] && [ ! -f "$(BR_DIR)/Makefile" ]; then \
echo ">>> Initializing Buildroot submodule..."; \
git submodule update --init --recursive -- $(BR_DIR); \
fi
.PHONY: all
all: init-submodule
$(BR_MAKE)
# Pass all other targets through to Buildroot
.PHONY: %
%: init-submodule
$(BR_MAKE) $@
# Shortcut for setting up the defconfig
.PHONY: setup
setup: init-submodule
$(BR_MAKE) arcade_defconfig