Add toolchain rules

This commit is contained in:
NADAL Jean-Baptiste
2019-10-25 18:35:14 +02:00
parent c1075f68da
commit 36af1b0874
10 changed files with 170 additions and 2 deletions

View File

@@ -14,6 +14,12 @@ buildroot.menuconfig: buildroot.config
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ savedefconfig
@echo "Saving defconfig done."
toolchain.menuconfig: toolchain.config
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ menuconfig
@echo "Saving defconfig (Waiting) ...."
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ savedefconfig
@echo "Saving defconfig done."
buildroot.nconfig: buildroot.config
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ nconfig
@echo "Saving defconfig (Waiting) ...."
@@ -30,6 +36,11 @@ 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
$(BR_STAGING)/buildroot/.config: $(BR_PROJECT)/configs/buildroot_defconfig
@mkdir -p $(BR_STAGING)/buildroot/
@cp $(BR_PROJECT)/configs/buildroot_defconfig $(BR_STAGING)/buildroot/.config
@@ -39,4 +50,4 @@ buildroot.check-package:
find $(BR_PROJECT)/../../bsp/buildroot_external/package/ -type f \( -name '*.mk' -o -name '*.hash' -o -name 'Config.*' \) -exec $(BR_PROJECT)/../../bsp/buildroot/utils/check-package -b {} \;
install.sd:
sudo dd if=$(BR_STAGING)/buildroot/images/sdcard.img of=/dev/sdb && sync && sync
sudo dd if=$(BR_STAGING)/buildroot/images/sdcard.img of=/dev/sdc && sync && sync