From 78246cac78f8d70e47f06ec63083baf4888119ed Mon Sep 17 00:00:00 2001 From: Nick Mello Date: Sat, 27 Sep 2025 17:38:44 -0500 Subject: [PATCH] Initial Commit This is the initial commit to get the arcade build system setup Signed-off-by: Nicholas Mello --- .gitignore | 1 + .gitmodules | 3 +++ Config.in | 0 Makefile | 26 ++++++++++++++++++++++++++ README.md | 2 ++ buildroot | 1 + configs/arcade_defconfig | 33 +++++++++++++++++++++++++++++++++ external.desc | 3 +++ external.mk | 0 9 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 Config.in create mode 100644 Makefile create mode 100644 README.md create mode 160000 buildroot create mode 100644 configs/arcade_defconfig create mode 100644 external.desc create mode 100644 external.mk diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55ac6ac --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/output* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e1d58ff --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "buildroot"] + path = buildroot + url = https://github.com/buildroot/buildroot.git diff --git a/Config.in b/Config.in new file mode 100644 index 0000000..e69de29 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..de009c9 --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..5c22d41 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Arcade Machine Project +This is a project to create a raspberry pi based arcade machine diff --git a/buildroot b/buildroot new file mode 160000 index 0000000..b0311f5 --- /dev/null +++ b/buildroot @@ -0,0 +1 @@ +Subproject commit b0311f5ba8fe4403668214ff2dc20a78eb15226b diff --git a/configs/arcade_defconfig b/configs/arcade_defconfig new file mode 100644 index 0000000..c0a33c3 --- /dev/null +++ b/configs/arcade_defconfig @@ -0,0 +1,33 @@ +BR2_aarch64=y +BR2_cortex_a72=y +BR2_ARM_FPU_VFPV4=y +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y +BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y +BR2_GLOBAL_PATCH_DIR="board/raspberrypi/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_SYSTEM_DHCP="eth0" +BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi4-64/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi4-64/post-image.sh" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,ac69f097e1fba94502cbd36278db204120a37943)/linux-ac69f097e1fba94502cbd36278db204120a37943.tar.gz" +BR2_LINUX_KERNEL_DEFCONFIG="bcm2711" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2711-rpi-4-b broadcom/bcm2711-rpi-400 broadcom/bcm2711-rpi-cm4 broadcom/bcm2711-rpi-cm4s" +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y +BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y +BR2_PACKAGE_XZ=y +BR2_PACKAGE_RPI_FIRMWARE=y +BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4=y +BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypi4-64/config_4_64bit.txt" +BR2_PACKAGE_KMOD=y +BR2_PACKAGE_KMOD_TOOLS=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_ROOTFS_EXT2_SIZE="120M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_KMOD_XZ=y +BR2_PACKAGE_HOST_MTOOLS=y diff --git a/external.desc b/external.desc new file mode 100644 index 0000000..064334c --- /dev/null +++ b/external.desc @@ -0,0 +1,3 @@ +name: arcade +desc: Project for building the operating system for an arcade machine +url: https://github.com/nicholasmello/arcade diff --git a/external.mk b/external.mk new file mode 100644 index 0000000..e69de29