Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

414 Commits   2 Branches   1 Tag
   217         kx 
   217         kx COMPONENT_TARGETS  = $(HARDWARE_VISIONFIVE2)
   217         kx 
   217         kx NEED_ABS_PATH      = true
   217         kx 
   217         kx COMPONENT_IS_3PP   = true
   217         kx 
   217         kx 
   217         kx include ../../../../build-system/constants.mk
   217         kx 
   217         kx 
   217         kx SOURCE_REQUIRES    = sources/U-Boot/StarFive
   217         kx 
   217         kx REQUIRES           = boot/kernel/visionfive2/6.1.31-3.8.2
   217         kx 
   217         kx # ======= __END_OF_REQUIRES__ =======
   217         kx 
   217         kx 
   217         kx version            = 2021.10-3.8.2
   217         kx tar_xz_archive     = $(SRC_PACKAGE_PATH)/U-Boot/StarFive/u-boot/u-boot-$(version).tar.xz
   217         kx SRC_ARCHIVE        = $(tar_xz_archive)
   217         kx SRC_DIR            = $(TARGET_BUILD_DIR)/u-boot-$(version)
   217         kx src_done           = $(TARGET_BUILD_DIR)/.source_done
   217         kx 
   217         kx opensbi_version    = 1.2-3.8.2
   217         kx opensbi_archive    = $(SRC_PACKAGE_PATH)/U-Boot/StarFive/opensbi/opensbi-$(opensbi_version).tar.xz
   217         kx OPENSBI_SRC_DIR    = $(TARGET_BUILD_DIR)/opensbi-$(opensbi_version)
   217         kx opensbi_src_done   = $(TARGET_BUILD_DIR)/.opensbi-source-done
   217         kx 
   217         kx tools_version      = 20231107
   217         kx tools_archive      = $(SRC_PACKAGE_PATH)/U-Boot/StarFive/Tools/tools-$(tools_version).tar.xz
   217         kx TOOLS_SRC_DIR      = $(TARGET_BUILD_DIR)/tools-$(tools_version)
   217         kx tools_src_done     = $(TARGET_BUILD_DIR)/.tools-source-done
   217         kx 
   217         kx 
   217         kx PATCHES = PATCHES
   217         kx 
   217         kx 
   217         kx u_boot             = $(TARGET_BUILD_DIR)/.u_boot_done
   217         kx u_boot_config      = starfive_visionfive2_defconfig
   217         kx 
   217         kx spl_tool           = $(TARGET_BUILD_DIR)/.spl_tool_done
   217         kx opensbi            = $(TARGET_BUILD_DIR)/.opensbi_done
   217         kx 
   217         kx u_boot_spl         = $(TARGET_BUILD_DIR)/u-boot-spl.bin
   217         kx fw_payload         = $(TARGET_BUILD_DIR)/fw_payload.img
   217         kx 
   217         kx #
   217         kx # Image, zImage from Linux kernel package:
   217         kx #
   217         kx kernel_version     = 6.1.31
   217         kx linux_Image        = $(TARGET_DEST_DIR)/bootfs/Image
   217         kx linux_zImage       = $(TARGET_DEST_DIR)/bootfs/vmlinuz
   217         kx 
   217         kx #
   217         kx # uImage, uzImage for U-Boot (see u-boot-2021.10-3.8.2/include/configs/starfive-visionfive2.h):
   217         kx #
   217         kx kernel_addr        = 0x40200000
   217         kx entry_point        = $(kernel_addr)
   217         kx uImage             = $(TARGET_BUILD_DIR)/uImage
   217         kx uzImage            = $(TARGET_BUILD_DIR)/uzImage
   217         kx 
   217         kx fdt_addr           = 0x46000000
   217         kx kernel_comp_addr   = 0x5a000000
   217         kx ramdisk_addr       = 0x46100000
   217         kx 
   217         kx #
   217         kx # Boot Scripts:
   217         kx #
   217         kx boot_emmc_script    = $(TARGET_BUILD_DIR)/boot.emmc.script
   217         kx boot_emmc_scr       = $(TARGET_BUILD_DIR)/boot.emmc.scr
   217         kx 
   217         kx boot_sdhc_script    = $(TARGET_BUILD_DIR)/boot.sdhc.script
   217         kx boot_sdhc_scr       = $(TARGET_BUILD_DIR)/boot.sdhc.scr
   217         kx 
   217         kx boot_nvme_script    = $(TARGET_BUILD_DIR)/boot.nvme.script
   217         kx boot_nvme_scr       = $(TARGET_BUILD_DIR)/boot.nvme.scr
   217         kx 
   217         kx 
   217         kx spi_flash_image         = $(TARGET_BUILD_DIR)/$(HARDWARE).spi-flash.image
   217         kx install_spi_flash_image = $(TARGET_BUILD_DIR)/.spi_flash_image_done
   217         kx 
   217         kx spi_flash_image_sum         = $(TARGET_BUILD_DIR)/$(HARDWARE).spi-flash.image.md5
   217         kx install_spi_flash_image_sum = $(TARGET_BUILD_DIR)/.spi_flash_image_sum_done
   217         kx 
   217         kx 
   217         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
   217         kx ARCH = riscv
   217         kx endif
   217         kx 
   217         kx USE_TARGET_DEST_DIR_SYSROOT = no
   217         kx 
   217         kx 
   217         kx ####### Targets
   217         kx 
   217         kx PKG_GROUP = boot
   217         kx 
   217         kx 
   217         kx UBOOT_BIN_PKG_NAME                = u-boot
   217         kx UBOOT_BIN_PKG_VERSION             = 2022.10
   217         kx UBOOT_BIN_PKG_ARCH                = $(PKGARCH)
   217         kx UBOOT_BIN_PKG_DISTRO_NAME         = $(DISTRO_NAME)
   217         kx UBOOT_BIN_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
   217         kx UBOOT_BIN_PKG_GROUP               = $(PKG_GROUP)
   217         kx ###                                |---handy-ruler-------------------------------|
   217         kx UBOOT_BIN_PKG_SHORT_DESCRIPTION   = StarFive VisionFive U-Boot
   217         kx UBOOT_BIN_PKG_URL                 = $(BUG_URL)
   217         kx UBOOT_BIN_PKG_LICENSE             = custom
   217         kx UBOOT_BIN_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(UBOOT_BIN_PKG_NAME)-pkg-description
   217         kx UBOOT_BIN_PKG_DESCRIPTION_FILE_IN = $(UBOOT_BIN_PKG_NAME)-pkg-description.in
   217         kx UBOOT_BIN_PKG_INSTALL_SCRIPT      = $(UBOOT_BIN_PKG_NAME)-pkg-install.sh
   217         kx 
   217         kx UBOOT_BIN_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(UBOOT_BIN_PKG_NAME)-package
   217         kx 
   217         kx build_uboot_pkg    = $(TARGET_BUILD_DIR)/.u_boot_pkg_done
   217         kx 
   217         kx pkg_basename       = $(UBOOT_BIN_PKG_NAME)-$(UBOOT_BIN_PKG_VERSION)-$(UBOOT_BIN_PKG_ARCH)-$(UBOOT_BIN_PKG_DISTRO_NAME)-$(UBOOT_BIN_PKG_DISTRO_VERSION)
   217         kx 
   217         kx pkg_archive        = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
   217         kx 
   217         kx pkg_certificate    = $(call cert-name,$(pkg_archive))
   217         kx pkg_signature      = $(call sign-name,$(pkg_archive))
   217         kx pkg_description    = $(call desc-name,$(pkg_archive))
   217         kx products           = $(call pkg-files,$(pkg_archive))
   217         kx 
   217         kx BUILD_TARGETS      = $(u_boot)
   217         kx BUILD_TARGETS     += $(spl_tool)
   217         kx BUILD_TARGETS     += $(opensbi)
   217         kx BUILD_TARGETS     += $(u_boot_spl)
   217         kx BUILD_TARGETS     += $(fw_payload)
   217         kx BUILD_TARGETS     += $(uImage)
   217         kx BUILD_TARGETS     += $(uzImage)
   217         kx BUILD_TARGETS     += $(boot_emmc_script)
   217         kx BUILD_TARGETS     += $(boot_sdhc_script)
   217         kx BUILD_TARGETS     += $(boot_nvme_script)
   217         kx BUILD_TARGETS     += $(boot_emmc_scr)
   217         kx BUILD_TARGETS     += $(boot_sdhc_scr)
   217         kx BUILD_TARGETS     += $(boot_nvme_scr)
   217         kx BUILD_TARGETS     += $(build_uboot_pkg)
   217         kx BUILD_TARGETS     += $(install_spi_flash_image)
   217         kx BUILD_TARGETS     += $(install_spi_flash_image_sum)
   217         kx 
   217         kx PRODUCT_TARGETS    = $(products)
   217         kx 
   217         kx ROOTFS_TARGETS     = $(pkg_archive)
   217         kx 
   217         kx 
   217         kx include ../../../../build-system/core.mk
   217         kx 
   217         kx 
   217         kx #
   217         kx # U-Boot options:
   217         kx #
   217         kx suppress-host-warnings   = -Wno-stringop-truncation
   217         kx suppress-target-warnings = -Wno-unused-variable -Wno-int-conversion -Wno-cpp -Wno-implicit-function-declaration
   217         kx 
   217         kx HOST_TOOLS_SETTINGS      = PKG_CONFIG_PATH= PYTHON3=/usr/bin/python3
   217         kx HOST_TOOLS_SETTINGS     += HOSTLDFLAGS='-L/usr/lib64'
   217         kx HOST_TOOLS_SETTINGS     += HOSTCFLAGS='-isystem/usr/include $(suppress-host-warnings)'
   217         kx 
   217         kx TARGET_TOOLS_SETTINGS    = KCFLAGS='$(suppress-target-warnings)'
   217         kx 
   217         kx #
   217         kx # OpenSBI options:
   217         kx #
   217         kx U_BOOT_PATH = ../u-boot-$(version)
   217         kx 
   217         kx OPENSBI_SETTINGS  = PLATFORM=generic FW_PAYLOAD_PATH=$(U_BOOT_PATH)/u-boot.bin
   217         kx OPENSBI_SETTINGS += FW_FDT_PATH=$(U_BOOT_PATH)/arch/riscv/dts/starfive_visionfive2.dtb
   217         kx OPENSBI_SETTINGS += FW_TEXT_START=0x40000000
   217         kx 
   217         kx 
   217         kx ##
   217         kx ## armv7-m (cortex-m0) toolchain:
   217         kx ##
   217         kx #M0_TOOLCHAIN_PATH   = /opt/toolchains/arm-NONE-eabi-newlib/1.9.8
   217         kx #CORTEX_M0_SETTINGS  = M0_CROSS_COMPILE=$(M0_TOOLCHAIN_PATH)/bin/arm-none-eabi- PLAT=rk3399 bl31
   217         kx #
   217         kx #suppress-warnings   = -Wno-maybe-uninitialized -Wno-stringop-truncation
   217         kx #
   217         kx #HOST_TOOLS_SETTINGS = PYTHON3=/usr/bin/python3 HOSTLDFLAGS='-L/usr/lib64' HOSTCFLAGS='-I/usr/include $(suppress-warnings)'
   217         kx 
   217         kx device_dtb = jh7110-visionfive-v2.dtb
   217         kx 
   217         kx #
   217         kx # Extra kernel boot arguments:
   217         kx #
   217         kx extra  = consoleblank=0
   217         kx extra += no_console_suspend
   217         kx 
   217         kx 
   217         kx ####### Dependencies
   217         kx 
   217         kx 
   217         kx $(opensbi_src_done): $(opensbi_archive)
   217         kx 	@echo "Expanding $(opensbi_archive)"
   217         kx 	@tar xJf $(opensbi_archive) -C $(TARGET_BUILD_DIR)
   217         kx 	@touch $@
   217         kx 
   217         kx $(tools_src_done): $(tools_archive)
   217         kx 	@echo "Expanding $(tools_archive)"
   217         kx 	@tar xJf $(tools_archive) -C $(TARGET_BUILD_DIR)
   217         kx 	@touch $@
   217         kx 
   217         kx $(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP) $(opensbi_src_done) $(tools_src_done)
   217         kx 	$(UNPACK_SRC_ARCHIVE)
   217         kx 	$(APPLY_PATCHES)
   217         kx 	@( cd $(SRC_DIR)/configs ; \
   217         kx 	   echo '# Set BOOTDELAY options:'          >> $(u_boot_config) ; \
   217         kx 	   echo 'CONFIG_BOOTDELAY=3'                >> $(u_boot_config) ; \
   217         kx 	   echo 'CONFIG_AUTOBOOT_KEYED=y'           >> $(u_boot_config) ; \
   217         kx 	   echo 'CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot.\n"' >> $(u_boot_config) ; \
   217         kx 	   echo 'CONFIG_AUTOBOOT_STOP_STR=" "'      >> $(u_boot_config) ; \
   217         kx 	 )
   217         kx 	@touch $@
   217         kx 
   217         kx $(spl_tool): $(src_done)
   217         kx 	# ======= Build spl_tool: =======
   217         kx 	@$(MAKE) -C $(TOOLS_SRC_DIR)/spl_tool
   217         kx 	@touch $@
   217         kx 
   217         kx UMAKE := $(HOST_TOOLS_SETTINGS) $(TARGET_TOOLS_SETTINGS) $(MAKE) -C $(SRC_DIR) ARCH=$(ARCH) CROSS_COMPILE='$(CROSS_PREFIX)'
   217         kx 
   217         kx $(u_boot): $(spl_tool)
   217         kx 	# ======= Build U-Boot: =======
   217         kx 	+$(UMAKE) $(u_boot_config)
   217         kx 	+$(UMAKE)
   217         kx 	@touch $@
   217         kx 
   217         kx OMAKE := $(MAKE) -C $(OPENSBI_SRC_DIR) ARCH=$(ARCH) CROSS_COMPILE='$(CROSS_PREFIX)' $(OPENSBI_SETTINGS)
   217         kx 
   217         kx $(opensbi): $(u_boot)
   217         kx 	# ======= Build OpenSBI: =======
   217         kx 	+$(OMAKE)
   217         kx 	@touch $@
   217         kx 
   217         kx $(u_boot_spl): $(spl_tool) $(u_boot)
   217         kx 	# ======= Create U-Boot SPL: =======
   217         kx 	@$(TOOLS_SRC_DIR)/spl_tool/spl_tool -c -f $(SRC_DIR)/spl/u-boot-spl.bin
   217         kx 	@cp -a $(SRC_DIR)/spl/u-boot-spl.bin.normal.out $@
   217         kx 
   217         kx $(fw_payload): $(opensbi)
   217         kx 	# ======= Create fw_payload image: =======
   217         kx 	@( cd $(TOOLS_SRC_DIR)/uboot_its ; \
   217         kx 	   cp ../../opensbi-$(opensbi_version)/build/platform/generic/firmware/fw_payload.bin ./ ; \
   217         kx 	   ../../u-boot-$(version)/tools/mkimage -f visionfive2-uboot-fit-image.its \
   217         kx                                                  -A $(ARCH) -O u-boot -T firmware visionfive2_fw_payload.img ; \
   217         kx 	 )
   217         kx 	@cp -a $(TOOLS_SRC_DIR)/uboot_its/visionfive2_fw_payload.img $@
   217         kx 
   217         kx $(uImage): $(u_boot_spl) $(fw_payload)
   217         kx 	$(CURDIR)/$(SRC_DIR)/tools/mkimage \
   217         kx 	   -A $(ARCH) -O linux -T kernel -C none -a $(kernel_addr) -e $(entry_point) \
   217         kx 	   -n $(kernel_version) -d $(linux_Image) $@
   217         kx 
   217         kx $(uzImage): $(u_boot_spl) $(fw_payload)
   217         kx 	$(CURDIR)/$(SRC_DIR)/tools/mkimage \
   217         kx 	   -A $(ARCH) -O linux -T kernel -C lzma -a $(kernel_addr) -e $(entry_point) \
   217         kx 	   -n $(kernel_version) -d $(linux_zImage) $@
   217         kx 
   217         kx #
   217         kx # NOTE:
   217         kx # ====
   217         kx #   eMMC is always  mmc 0 in u-boot and mmcblk0 in kernel
   217         kx #   sdhc is always  mmc 1 in u-boot and mmcblk1 in kernel
   217         kx #   nvme is always nvme 0 in u-boot and nvme0n1 in kernel
   217         kx #
   217         kx 
   217         kx $(boot_emmc_script): $(uImage) $(uzImage)
   217         kx 	@( echo ""                                                                > $(boot_emmc_script) && \
   217         kx 	   echo "mmc dev 0"                                                      >> $(boot_emmc_script) && \
   217         kx 	   echo "mmcinfo"                                                        >> $(boot_emmc_script) && \
   217         kx 	   echo "ext4load mmc 0:2 \$${kernel_comp_addr_r} /boot/uzImage"         >> $(boot_emmc_script) && \
   217         kx 	   echo "ext4load mmc 0:2 \$${fdt_addr_r} /boot/starfive/$(device_dtb)"  >> $(boot_emmc_script) && \
   217         kx 	   echo "setenv bootargs 'earlycon=sbi console=ttyS0,115200n8 console=tty1 ro root=/dev/mmcblk0p2 rootwait rootfstype=ext4 $(extra)'" >> $(boot_emmc_script) && \
   217         kx 	   echo "bootm \$${kernel_comp_addr_r} - \$${fdt_addr_r}"                >> $(boot_emmc_script) \
   217         kx 	 )
   217         kx 
   217         kx $(boot_emmc_scr): $(boot_emmc_script)
   217         kx 	$(CURDIR)/$(SRC_DIR)/tools/mkimage -A $(ARCH) -T script -C none -n "Boot Script" -d $< $@
   217         kx 
   217         kx $(boot_sdhc_script): $(uImage) $(uzImage)
   217         kx 	@( echo ""                                                                > $(boot_sdhc_script) && \
   217         kx 	   echo "mmc dev 1"                                                      >> $(boot_sdhc_script) && \
   217         kx 	   echo "mmcinfo"                                                        >> $(boot_sdhc_script) && \
   217         kx 	   echo "ext4load mmc 1:2 \$${kernel_comp_addr_r} /boot/uzImage"         >> $(boot_sdhc_script) && \
   217         kx 	   echo "ext4load mmc 1:2 \$${fdt_addr_r} /boot/starfive/$(device_dtb)"  >> $(boot_sdhc_script) && \
   217         kx 	   echo "setenv bootargs 'earlycon=sbi console=ttyS0,115200n8 console=tty1 ro root=/dev/mmcblk1p2 rootwait rootfstype=ext4 $(extra)'" >> $(boot_sdhc_script) && \
   217         kx 	   echo "bootm \$${kernel_comp_addr_r} - \$${fdt_addr_r}"                >> $(boot_sdhc_script) \
   217         kx 	 )
   217         kx 
   217         kx $(boot_sdhc_scr): $(boot_sdhc_script)
   217         kx 	$(CURDIR)/$(SRC_DIR)/tools/mkimage -A $(ARCH) -T script -C none -n "Boot Script" -d $< $@
   217         kx 
   217         kx $(boot_nvme_script): $(uImage) $(uzImage)
   217         kx 	@( echo ""                                                                 > $(boot_nvme_script) && \
   217         kx 	   echo "nvme device 0"                                                   >> $(boot_nvme_script) && \
   217         kx 	   echo "nvme info"                                                       >> $(boot_nvme_script) && \
   217         kx 	   echo "ext4load nvme 0:2 \$${kernel_comp_addr_r} /boot/uzImage"         >> $(boot_nvme_script) && \
   217         kx 	   echo "ext4load nvme 0:2 \$${fdt_addr_r} /boot/starfive/$(device_dtb)"  >> $(boot_nvme_script) && \
   217         kx 	   echo "setenv bootargs 'earlycon=sbi console=ttyS0,115200n8 console=tty1 ro root=/dev/nvme0n1p2 rootwait rootfstype=ext4 $(extra)'" >> $(boot_nvme_script) && \
   217         kx 	   echo "bootm \$${kernel_comp_addr_r} - \$${fdt_addr_r}"                 >> $(boot_nvme_script) \
   217         kx 	 )
   217         kx 
   217         kx $(boot_nvme_scr): $(boot_nvme_script)
   217         kx 	$(CURDIR)/$(SRC_DIR)/tools/mkimage -A $(ARCH) -T script -C none -n "Boot Script" -d $< $@
   217         kx 
   217         kx $(build_uboot_pkg): $(boot_emmc_scr) $(boot_sdhc_scr) $(boot_nvme_scr)
   217         kx 	@mkdir -p $(TARGET_DEST_DIR)/bootfs/u-boot
   217         kx 	@mkdir -p $(UBOOT_BIN_PKG)/boot/u-boot
   217         kx 	# ======= install U-Boot images =======
   217         kx 	@cp -a $(u_boot_spl) $(fw_payload)  $(UBOOT_BIN_PKG)/boot/u-boot
   217         kx 	# ======= install signed kernel and script images =======
   217         kx 	@cp -a $(uImage) $(uzImage) $(boot_emmc_scr) $(boot_sdhc_scr) $(boot_nvme_scr)  $(UBOOT_BIN_PKG)/boot
   217         kx 	@( cd $(UBOOT_BIN_PKG)/boot ; \
   217         kx 	   ln -sf boot.sdhc.scr boot.scr ; \
   217         kx 	 )
   217         kx 	# ======= copy U-Boot images and binaries into devenv =======
   217         kx 	@cp -a $(uImage) $(uzImage) $(boot_emmc_scr) $(boot_sdhc_scr) $(boot_nvme_scr)  $(TARGET_DEST_DIR)/bootfs
   217         kx 	@cp -a $(u_boot_spl) $(fw_payload)  $(TARGET_DEST_DIR)/bootfs/u-boot
   217         kx 	# ======= install Documentation =======
   217         kx 	@mkdir -p $(UBOOT_BIN_PKG)/usr/doc/u-boot-$(UBOOT_BIN_PKG_VERSION)
   217         kx 	@cp -a $(SRC_DIR)/Licenses $(SRC_DIR)/MAINTAINERS $(SRC_DIR)/README \
   217         kx 	       $(UBOOT_BIN_PKG)/usr/doc/u-boot-$(UBOOT_BIN_PKG_VERSION)
   217         kx 	@touch $@
   217         kx 
   217         kx #
   217         kx # In jh7110-visionfive-v2.dtsi defined:
   217         kx #
   217         kx #    Offset |    Length | Size  | Part Name | Description
   217         kx # ----------+-----------+-------+-----------+-----------------
   217         kx #       0x0     0x40000    256k   spl         SPL
   217         kx #   0xf0000     0x10000     64k   uboot-env   U-Boot environment variables
   217         kx #  0x100000    0x300000   3072k   uboot       fw_payload.img (OpenSBI + U-Boot)
   217         kx #  0xf00000    0x100000   1024k   data        Reseved
   217         kx #
   217         kx 
   217         kx $(spi_flash_image): $(build_uboot_pkg)
   217         kx 	# ======= Create SPI flash image: =======
   217         kx 	@$(DD) if=/dev/zero bs=1k count=16384 | tr '\000' '\377' > $@
   217         kx 	# ------- Clean U-Boot environment: -------
   217         kx 	@$(DD) if=/dev/zero of=$@ bs=1k count=64 seek=960 conv=notrunc
   217         kx 	# ------- Write u-boot-spl and fw_payload into flash image: -------
   217         kx 	@$(DD) if=$(u_boot_spl) of=$@ bs=1k           conv=notrunc
   217         kx 	@$(DD) if=$(fw_payload) of=$@ bs=1k seek=1024 conv=notrunc
   217         kx 	@cp -a $(spi_flash_image) $(UBOOT_BIN_PKG)/boot/u-boot/spi-flash.image
   217         kx 	@( cd $(UBOOT_BIN_PKG)/boot/u-boot/ ; \
   217         kx 	   md5sum -b spi-flash.image > spi-flash.image.md5 ; \
   217         kx 	 )
   217         kx 	@touch $@
   217         kx 
   217         kx $(install_spi_flash_image): $(spi_flash_image)
   217         kx 	@$(BUILDSYSTEM)/install_targets         \
   217         kx 	   --destination=$(PRODUCTS_DEST_DIR)   \
   217         kx 	   --toolchain=$(TOOLCHAIN)             \
   217         kx 	   --hardware=$(HARDWARE)               \
   217         kx 	   --flavour=$(FLAVOUR)                 \
   217         kx 	   $^
   217         kx 	@touch $@
   217         kx 
   217         kx $(spi_flash_image_sum): $(spi_flash_image)
   217         kx 	@( cd $(TARGET_BUILD_DIR) ; \
   217         kx 	   md5sum -b $(HARDWARE).spi-flash.image > $(HARDWARE).spi-flash.image.md5 ; \
   217         kx 	 )
   217         kx 	@touch $@
   217         kx 
   217         kx $(install_spi_flash_image_sum): $(spi_flash_image_sum)
   217         kx 	@$(BUILDSYSTEM)/install_targets         \
   217         kx 	   --destination=$(PRODUCTS_DEST_DIR)   \
   217         kx 	   --toolchain=$(TOOLCHAIN)             \
   217         kx 	   --hardware=$(HARDWARE)               \
   217         kx 	   --flavour=$(FLAVOUR)                 \
   217         kx 	   $^
   217         kx 	@touch $@
   217         kx 
   217         kx $(UBOOT_BIN_PKG_DESCRIPTION_FILE): $(UBOOT_BIN_PKG_DESCRIPTION_FILE_IN)
   217         kx 	@cat $< | $(SED) -e "s/@VERSION@/$(UBOOT_BIN_PKG_VERSION)/g" | \
   217         kx 	          $(SED) -e "s/@HARDWARE_SPEC@/$(HW_SPEC)/g"> $@
   217         kx 
   217         kx $(pkg_certificate) : $(pkg_archive) ;
   217         kx $(pkg_signature)   : $(pkg_archive) ;
   217         kx $(pkg_description) : $(pkg_archive) ;
   217         kx 
   217         kx $(pkg_archive): $(install_boot_records) $(UBOOT_BIN_PKG_DESCRIPTION_FILE) $(UBOOT_BIN_PKG_INSTALL_SCRIPT)
   217         kx 	@cp $(UBOOT_BIN_PKG_DESCRIPTION_FILE) $(UBOOT_BIN_PKG)/.DESCRIPTION
   217         kx 	@cp $(UBOOT_BIN_PKG_INSTALL_SCRIPT) $(UBOOT_BIN_PKG)/.INSTALL
   217         kx 	@chmod a+x $(UBOOT_BIN_PKG)/.INSTALL
   217         kx 	@$(BUILD_PKG_REQUIRES) $(UBOOT_BIN_PKG)/.REQUIRES
   217         kx 	@echo "pkgname=$(UBOOT_BIN_PKG_NAME)"                            >  $(UBOOT_BIN_PKG)/.PKGINFO ; \
   217         kx 	 echo "pkgver=$(UBOOT_BIN_PKG_VERSION)"                          >> $(UBOOT_BIN_PKG)/.PKGINFO ; \
   217         kx 	 echo "arch=$(UBOOT_BIN_PKG_ARCH)"                               >> $(UBOOT_BIN_PKG)/.PKGINFO ; \
   217         kx 	 echo "distroname=$(UBOOT_BIN_PKG_DISTRO_NAME)"                  >> $(UBOOT_BIN_PKG)/.PKGINFO ; \
   217         kx 	 echo "distrover=$(UBOOT_BIN_PKG_DISTRO_VERSION)"                >> $(UBOOT_BIN_PKG)/.PKGINFO ; \
   217         kx 	 echo "group=$(UBOOT_BIN_PKG_GROUP)"                             >> $(UBOOT_BIN_PKG)/.PKGINFO ; \
   217         kx 	 echo "short_description=\"$(UBOOT_BIN_PKG_SHORT_DESCRIPTION)\"" >> $(UBOOT_BIN_PKG)/.PKGINFO ; \
   217         kx 	 echo "url=$(UBOOT_BIN_PKG_URL)"                                 >> $(UBOOT_BIN_PKG)/.PKGINFO ; \
   217         kx 	 echo "license=$(UBOOT_BIN_PKG_LICENSE)"                         >> $(UBOOT_BIN_PKG)/.PKGINFO
   217         kx 	@$(PSEUDO) sh -c "cd $(UBOOT_BIN_PKG) && \
   217         kx 	                  chown -R root:root . && \
   217         kx 	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."