Add rules to make toolchain.
This commit is contained in:
@@ -2,14 +2,21 @@
|
|||||||
|
|
||||||
BR2_EXTERNAL ?= $(BR_PROJECT)/../../bsp/buildroot_external/
|
BR2_EXTERNAL ?= $(BR_PROJECT)/../../bsp/buildroot_external/
|
||||||
|
|
||||||
|
BR_PROJECT_CONFIG = buildroot_defconfig
|
||||||
|
BR_PROJECT_CONFIG_PATH = $(BR_PROJECT)/configs/$(BR_PROJECT_CONFIG)
|
||||||
|
|
||||||
|
BR_TOOLCHAIN_CONFIG = toolchain_defconfig
|
||||||
|
BR_TOOLCHAIN_CONFIG_PATH = $(BR_PROJECT)/configs/$(BR_TOOLCHAIN_CONFIG)
|
||||||
|
|
||||||
BR_ENV = BR2_EXTERNAL=$(BR2_EXTERNAL) O=$(BR_STAGING)/buildroot/ WORKSPACE_DIR=$(BR_STAGING)
|
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 += 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
|
BR_ENV += BR2_DEFCONFIG_FROM_ENV=1
|
||||||
|
|
||||||
|
# Project.
|
||||||
buildroot.menuconfig: buildroot.config
|
buildroot.menuconfig: buildroot.config
|
||||||
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ menuconfig
|
$(MAKE) $(BR_ENV) BR2_DEFCONFIG=$(BR_PROJECT_CONFIG_PATH) -C $(BR_PROJECT)/../../bsp/buildroot/ menuconfig
|
||||||
@echo "Saving defconfig (Waiting) ...."
|
@echo "Saving defconfig (Waiting) ...."
|
||||||
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ savedefconfig
|
$(MAKE) $(BR_ENV) BR2_DEFCONFIG=$(BR_PROJECT_CONFIG_PATH) -C $(BR_PROJECT)/../../bsp/buildroot/ savedefconfig
|
||||||
@echo "Saving defconfig done."
|
@echo "Saving defconfig done."
|
||||||
|
|
||||||
buildroot: buildroot.config
|
buildroot: buildroot.config
|
||||||
@@ -23,9 +30,26 @@ 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_defconfig $(BR_STAGING)/buildroot/.config
|
@cp $(BR_PROJECT_CONFIG_PATH) $(BR_STAGING)/buildroot/.config
|
||||||
$(MAKE) $(BR_ENV) -C $(BR_PROJECT)/../../bsp/buildroot/ defconfig
|
$(MAKE) $(BR_ENV) BR2_DEFCONFIG=$(BR_PROJECT_CONFIG_PATH) -C $(BR_PROJECT)/../../bsp/buildroot/ defconfig
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Toolchain.
|
||||||
|
toolchain.menuconfig: toolchain.config
|
||||||
|
$(MAKE) $(BR_ENV) BR2_DEFCONFIG=$(BR_TOOLCHAIN_CONFIG_PATH) -C $(BR_PROJECT)/../../bsp/buildroot/ menuconfig
|
||||||
|
@echo "Saving defconfig (Waiting) ...."
|
||||||
|
$(MAKE) $(BR_ENV) BR2_DEFCONFIG=$(BR_TOOLCHAIN_CONFIG_PATH) -C $(BR_PROJECT)/../../bsp/buildroot/ savedefconfig
|
||||||
|
@echo "Saving defconfig done."
|
||||||
|
|
||||||
|
toolchain.config:
|
||||||
|
@mkdir -p $(BR_STAGING)/buildroot/
|
||||||
|
ifeq ("$(wildcard $(BR_STAGING)/buildroot/.config)","")
|
||||||
|
@cp $(BR_TOOLCHAIN_CONFIG_PATH) $(BR_STAGING)/buildroot/.config
|
||||||
|
$(MAKE) $(BR_ENV) BR2_DEFCONFIG=$(BR_TOOLCHAIN_CONFIG_PATH) -C $(BR_PROJECT)/../../bsp/buildroot/ defconfig
|
||||||
|
endif
|
||||||
|
|
||||||
|
toolchain.archive:
|
||||||
|
cd $(BR_STAGING)/cross/usr; tar cvjf $(BR_STAGING)/toolchain.tar.bz2 *
|
||||||
|
|
||||||
install.sd:
|
install.sd:
|
||||||
sudo dd if=$(BR_STAGING)/buildroot/images/sdcard.img of=/dev/mmcblk0 && sync && sync
|
sudo dd if=$(BR_STAGING)/buildroot/images/sdcard.img of=/dev/mmcblk0 && sync && sync
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
16
projects/rpi_domo/configs/toolchain_defconfig
Normal file
16
projects/rpi_domo/configs/toolchain_defconfig
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
BR2_x86_i686=y
|
||||||
|
BR2_DL_DIR="$(BUILDS_ROOT)/dl"
|
||||||
|
BR2_HOST_DIR="$(WORKSPACE_DIR)/cross"
|
||||||
|
BR2_PRIMARY_SITE="http://serveur.nadal-fr.com/buildroot/"
|
||||||
|
BR2_PACKAGE_OVERRIDE_FILE="$(BOARD)/local.mk"
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
|
||||||
|
BR2_KERNEL_HEADERS_4_4=y
|
||||||
|
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||||
|
BR2_GCC_ENABLE_LTO=y
|
||||||
|
BR2_PACKAGE_HOST_GDB=y
|
||||||
|
BR2_PACKAGE_HOST_GDB_TUI=y
|
||||||
|
BR2_PACKAGE_HOST_GDB_PYTHON=y
|
||||||
|
BR2_GDB_VERSION_7_12=y
|
||||||
|
BR2_INIT_NONE=y
|
||||||
|
BR2_SYSTEM_BIN_SH_NONE=y
|
||||||
|
# BR2_PACKAGE_BUSYBOX is not set
|
||||||
Reference in New Issue
Block a user