mirror of
https://github.com/ApfelTeeSaft/vanilla.git
synced 2026-08-26 19:33:44 +00:00
fix local build option
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user