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:
26
Makefile
Normal file
26
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user