fix local build option

This commit is contained in:
itsmattkc
2025-12-01 10:26:06 -08:00
parent 4edcf199d4
commit f411c19f47
3 changed files with 18 additions and 10 deletions
+9 -3
View File
@@ -7,10 +7,16 @@ config BR2_PACKAGE_VANILLA
if BR2_PACKAGE_VANILLA
config BR2_PACKAGE_VANILLA_LOCAL_PATH
string "Local repository"
config BR2_PACKAGE_VANILLA_USE_LOCAL
bool "Local build"
help
Local directory to build Vanilla from instead of retrieving from GitHub.
Use a local build directory rather than pulling from GitHub.
Useful for Docker builds or development.
config BR2_PACKAGE_VANILLA_LOCAL_PATH
depends on BR2_PACKAGE_VANILLA_USE_LOCAL
string "Local repository path"
help
Local directory to build Vanilla.
endif
+7 -6
View File
@@ -1,13 +1,14 @@
ifeq ($(strip $(BR2_PACKAGE_VANILLA_LOCAL_PATH)),)
VANILLA_VERSION = master
VANILLA_SITE = $(call github,vanilla-wiiu,vanilla,$(VANILLA_VERSION))
else
ifeq ($(BR2_PACKAGE_VANILLA_USE_LOCAL),y)
VANILLA_VERSION = local
VANILLA_SITE = $(BR2_PACKAGE_VANILLA_LOCAL_PATH)
VANILLA_SITE_METHOD = local
VANILLA_OVERRIDE_SRCDIR = $(VANILLA_SITE)
else
VANILLA_VERSION = master
VANILLA_SITE = $(call github,vanilla-wiiu,vanilla,$(VANILLA_VERSION))
endif
+2 -1
View File
@@ -3,7 +3,8 @@
set -e
make -C /buildroot O=/build BR2_EXTERNAL=/vanilla/buildroot vanilla_raspberrypi0w_defconfig
/buildroot/utils/config --set-str BR2_PACKAGE_VANILLA_LOCAL_PATH /vanilla
/buildroot/utils/config --file /build/.config -e BR2_PACKAGE_VANILLA_USE_LOCAL
/buildroot/utils/config --file /build/.config --set-str BR2_PACKAGE_VANILLA_LOCAL_PATH /vanilla
make -C /buildroot O=/build
cd /build/images