########################################## # uboot package for PADS ########################################## ifeq ($(strip $(PADS_WARP)),y) UBOOT_VER=1.3.0-74 UBOOT_DIR=$(BUILD_DIR)/u-boot-warp-$(UBOOT_VER) UBOOT_SOURCE=u-boot-warp-$(UBOOT_VER).tgz UBOOT_SITE=ftp://ftp.pikatech.com/outgoing/pads/u-boot UBOOT_UNZIP=zcat UCONFIG=warp endif $(DL_DIR)/$(UBOOT_SOURCE): $(WGET) -P $(DL_DIR) $(UBOOT_SITE)/$(UBOOT_SOURCE) uboot-source: $(DL_DIR)/$(UBOOT_SOURCE) $(UBOOT_DIR)/.unpacked: $(DL_DIR)/$(UBOOT_SOURCE) $(UBOOT_UNZIP) $(DL_DIR)/$(UBOOT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - touch $(UBOOT_DIR)/.unpacked $(UBOOT_DIR)/.configured: $(UBOOT_DIR)/.unpacked - ARCH=ppc $(MAKE) -C $(UBOOT_DIR) $(UCONFIG)_config_4m touch $(UBOOT_DIR)/.configured uboot: $(UBOOT_DIR)/.configured ARCH=ppc $(MAKE) -C $(UBOOT_DIR) cp -f $(UBOOT_DIR)/tools/mkimage bin/ @echo "u-boot version=$(U_BOOT_VERSION)" cp -f $(UBOOT_DIR)/u-boot-$(UBOOT_VER).bin images/u-boot.bin cp -f $(UBOOT_DIR)/u-boot-$(UBOOT_VER).srec images/u-boot.srec echo "U-Boot version" $(UBOOT_VER) >> $(PERSISTENT_STORAGE)/version_info.txt uboot-configure: $(UBOOT_DIR)/.configured uboot-clean: $(MAKE) -C $(UBOOT_DIR) clean uboot-config: $(UBOOT_DIR)/.configured uboot-dirclean: $(RM) -r $(UBOOT_DIR) ################################################ # # Toplevel Makefile options # ################################################# ifeq ($(strip $(PADS_PACKAGE_UBOOT)),y) TARGETS+=uboot endif