Fix integration.

This commit is contained in:
NADAL Jean-Baptiste
2019-10-30 18:40:47 +01:00
parent f877a98d9b
commit 0f1ca38438
4 changed files with 1403 additions and 7 deletions

View File

@@ -36,14 +36,25 @@ buildroot.shell: buildroot.config
buildroot.config: $(BR_STAGING)/buildroot/.config
toolchain.config: $(BR_PROJECT)/configs/toolchain_defconfig
@mkdir -p $(BR_STAGING)/buildroot/
@cp $(BR_PROJECT)/configs/toolchain_defconfig $(BR_STAGING)/buildroot/.config
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ defconfig
ifeq ($(DEBUG),1)
extra_options: option_debug
else
extra_options: option_release
endif
$(BR_STAGING)/buildroot/.config: $(BR_PROJECT)/configs/buildroot_defconfig
option_debug:
@echo "option debug"
echo "BR2_ENABLE_DEBUG=y" >> $(BR_PROJECT)/configs/buildroot_defconfig $(BR_STAGING)/buildroot/.config
option_release:
@echo "option release"
install_config:
@echo "install_config"
@mkdir -p $(BR_STAGING)/buildroot/
@cp $(BR_PROJECT)/configs/buildroot_defconfig $(BR_STAGING)/buildroot/.config
$(BR_STAGING)/buildroot/.config: install_config extra_options $(BR_PROJECT)/configs/buildroot_defconfig
@echo ".config rule"
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ defconfig
buildroot.check-package: