Initial Commit

This is the initial commit to get the arcade build system setup

Signed-off-by: Nicholas Mello <nick@nmello.dev>
This commit is contained in:
2025-09-27 17:38:44 -05:00
commit 78246cac78
9 changed files with 69 additions and 0 deletions

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
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