Update general rules to allow to save defconfig instead of all settings.
This commit is contained in:
@@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
BR2_EXTERNAL ?= $(BR_PROJECT)/../../bsp/buildroot_external/
|
BR2_EXTERNAL ?= $(BR_PROJECT)/../../bsp/buildroot_external/
|
||||||
|
|
||||||
BR_ENV = BR2_EXTERNAL=$(BR2_EXTERNAL) O=$(BR_STAGING)/buildroot/ WORKSPACE_DIR=$(BR_STAGING) BUILDS_ROOT=$(BR_LOCAL_BUILDS_ROOT) BOARD=$(BR_BOARD) PROJECT=$(BR_PROJECT)
|
BR_ENV = BR2_EXTERNAL=$(BR2_EXTERNAL) O=$(BR_STAGING)/buildroot/ WORKSPACE_DIR=$(BR_STAGING)
|
||||||
|
BR_ENV += BUILDS_ROOT=$(BR_LOCAL_BUILDS_ROOT) BOARD=$(BR_BOARD) PROJECT=$(BR_PROJECT)
|
||||||
|
BR_ENV += BR2_DEFCONFIG=$(BR_PROJECT)/configs/buildroot_defconfig BR2_DEFCONFIG_FROM_ENV=1
|
||||||
|
|
||||||
buildroot.menuconfig: buildroot.config
|
buildroot.menuconfig: buildroot.config
|
||||||
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ menuconfig
|
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ menuconfig
|
||||||
cmp -s $(BR_STAGING)/buildroot/.config $(BR_PROJECT)/configs/buildroot.config; \
|
@echo "Saving defconfig (Waiting) ...."
|
||||||
if test $$? -ne 0; then echo "Config Files has changed......"; \
|
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../../tools/buildroot/ savedefconfig
|
||||||
cp $(BR_STAGING)/buildroot/.config $(BR_PROJECT)/configs/buildroot.config; \
|
@echo "Saving defconfig done."
|
||||||
fi
|
|
||||||
|
|
||||||
buildroot: buildroot.config
|
buildroot: buildroot.config
|
||||||
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ $(BR_TARGET)
|
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ $(BR_TARGET)
|
||||||
@@ -22,12 +23,8 @@ buildroot.shell: buildroot.config
|
|||||||
buildroot.config:
|
buildroot.config:
|
||||||
@mkdir -p $(BR_STAGING)/buildroot/
|
@mkdir -p $(BR_STAGING)/buildroot/
|
||||||
ifeq ("$(wildcard $(BR_STAGING)/buildroot/.config)","")
|
ifeq ("$(wildcard $(BR_STAGING)/buildroot/.config)","")
|
||||||
@cp $(BR_PROJECT)/configs/buildroot.config $(BR_STAGING)/buildroot/.config
|
@cp $(BR_PROJECT)/configs/buildroot_defconfig $(BR_STAGING)/buildroot/.config
|
||||||
else
|
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../../tools/buildroot/ defconfig
|
||||||
cmp -s $(BR_PROJECT)/configs/buildroot.config $(BR_STAGING)/buildroot/.config; \
|
|
||||||
if test $$? -ne 0; then echo "Config Files has changed......"; \
|
|
||||||
cp $(BR_PROJECT)/configs/buildroot.config $(BR_STAGING)/buildroot/.config; \
|
|
||||||
fi
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install.sd:
|
install.sd:
|
||||||
|
|||||||
Reference in New Issue
Block a user