|
|
@ -35,12 +35,20 @@ define Build/Prepare |
|
|
|
find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
|
|
|
|
find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
|
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
UBOOT_CONFIG:=easy50712_DDR166M
|
|
|
|
UBOOT_CONFIG:=$(call qstrip,$(CONFIG_UBOOT_CONFIG))
|
|
|
|
|
|
|
|
UBOOT_DDR_CONFIG:=$(call qstrip,$(CONFIG_UBOOT_DDR_CONFIG))
|
|
|
|
|
|
|
|
|
|
|
|
UBOOT_MAKE_OPTS:= \
|
|
|
|
UBOOT_MAKE_OPTS:= \
|
|
|
|
CROSS_COMPILE=$(TARGET_CROSS) \
|
|
|
|
CROSS_COMPILE=$(TARGET_CROSS) \
|
|
|
|
ENDIANNESS= \
|
|
|
|
ENDIANNESS= \
|
|
|
|
V=1
|
|
|
|
V=1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
define Package/uboot-lantiq/config |
|
|
|
|
|
|
|
menu "configuration"
|
|
|
|
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Build/Configure/Target |
|
|
|
define Build/Configure/Target |
|
|
|
$(MAKE) -s -C $(PKG_BUILD_DIR) \
|
|
|
|
$(MAKE) -s -C $(PKG_BUILD_DIR) \
|
|
|
|
$(UBOOT_MAKE_OPTS) \
|
|
|
|
$(UBOOT_MAKE_OPTS) \
|
|
|
@ -50,7 +58,9 @@ endef |
|
|
|
|
|
|
|
|
|
|
|
define Build/Configure |
|
|
|
define Build/Configure |
|
|
|
$(call Build/Configure/Target,$(UBOOT_CONFIG))
|
|
|
|
$(call Build/Configure/Target,$(UBOOT_CONFIG))
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_UBOOT_RAMBOOT),y) |
|
|
|
$(call Build/Configure/Target,$(UBOOT_CONFIG)_ramboot)
|
|
|
|
$(call Build/Configure/Target,$(UBOOT_CONFIG)_ramboot)
|
|
|
|
|
|
|
|
endif |
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Build/Compile/Target |
|
|
|
define Build/Compile/Target |
|
|
@ -62,7 +72,9 @@ endef |
|
|
|
|
|
|
|
|
|
|
|
define Build/Compile |
|
|
|
define Build/Compile |
|
|
|
$(call Build/Compile/Target,$(UBOOT_CONFIG))
|
|
|
|
$(call Build/Compile/Target,$(UBOOT_CONFIG))
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_UBOOT_RAMBOOT),y) |
|
|
|
$(call Build/Compile/Target,$(UBOOT_CONFIG)_ramboot)
|
|
|
|
$(call Build/Compile/Target,$(UBOOT_CONFIG)_ramboot)
|
|
|
|
|
|
|
|
endif |
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/uboot-lantiq/install |
|
|
|
define Package/uboot-lantiq/install |
|
|
@ -71,12 +83,14 @@ define Package/uboot-lantiq/install |
|
|
|
if=$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)/u-boot.bin \
|
|
|
|
if=$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)/u-boot.bin \
|
|
|
|
of=$(1)/$(UBOOT_CONFIG)/u-boot.bin \
|
|
|
|
of=$(1)/$(UBOOT_CONFIG)/u-boot.bin \
|
|
|
|
bs=64k conv=sync
|
|
|
|
bs=64k conv=sync
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_UBOOT_RAMBOOT),y) |
|
|
|
if [ -e $(UBOOT_CONFIG).conf ]; then \
|
|
|
|
if [ -e $(UBOOT_CONFIG).conf ]; then \
|
|
|
|
perl ./gct \
|
|
|
|
perl ./gct \
|
|
|
|
$(UBOOT_CONFIG).conf \
|
|
|
|
$(UBOOT_DDR_CONFIG) \
|
|
|
|
$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)_ramboot/u-boot.srec \
|
|
|
|
$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)_ramboot/u-boot.srec \
|
|
|
|
$(1)/$(UBOOT_CONFIG)/u-boot.asc; \
|
|
|
|
$(1)/$(UBOOT_CONFIG)/u-boot.asc; \
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
endif |
|
|
|
endef |
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,uboot-lantiq)) |
|
|
|
$(eval $(call BuildPackage,uboot-lantiq)) |
|
|
|