Add toolchain rules
This commit is contained in:
@@ -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
|
||||
|
||||
26
bsp/include/toolchain.mk
Normal file
26
bsp/include/toolchain.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
#
|
||||
#
|
||||
|
||||
BR2_EXTERNAL ?= $(BR_PROJECT)/../../bsp/buildroot_external/
|
||||
|
||||
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/toolchain_defconfig BR2_DEFCONFIG_FROM_ENV=1
|
||||
BR_ENV += LD_LIBRARY_PATH=$(BR_STAGING)/cross/opt/ext-toolchain/lib/
|
||||
|
||||
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."
|
||||
|
||||
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
|
||||
|
||||
toolchain: toolchain.config
|
||||
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ $(BR_TARGET)
|
||||
|
||||
toolchain.archive:
|
||||
$(BR_PROJECT)/../../bsp/scripts/toolchain_build.sh $(BR_STAGING)/cross $(BR_LOCAL_BUILDS_ROOT)/delivery/
|
||||
Reference in New Issue
Block a user