2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
14 PKG_MD5SUM
:=2bf5ebf497dddc52440b1ea386cc1332
17 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
19 PKG_SOURCE_URL
:=ftp
://ftp.denx.de
/pub
/u-boot
22 include $(INCLUDE_DIR
)/package.mk
25 STAMP_CONFIGURED
:=$(PKG_BUILD_DIR
)/$(BUILD_VARIANT
)/.configured
26 STAMP_BUILT
:=$(PKG_BUILD_DIR
)/$(BUILD_VARIANT
)/.built
29 define Package
/uboot-lantiq-template
31 CATEGORY
:=Boot Loaders
32 DEPENDS
:=@TARGET_lantiq
33 URL
:=http
://www.denx.de
/wiki
/U-Boot
36 MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
40 Package
/uboot-lantiq-easy50712_DDR166M
=$(call Package
/uboot-lantiq-template
,easy50712_DDR166M
,NOR
)
41 Package
/uboot-lantiq-easy50712_DDR166M_ramboot
=$(call Package
/uboot-lantiq-template
,easy50712_DDR166M_ramboot
,RAM
)
42 Package
/uboot-lantiq-easy50812_DDR166M
=$(call Package
/uboot-lantiq-template
,easy50812_DDR166M
,NOR
)
43 Package
/uboot-lantiq-easy50812_DDR166M_ramboot
=$(call Package
/uboot-lantiq-template
,easy50812_DDR166M_ramboot
,RAM
)
45 DDR_CONFIG_easy50712_DDR166M_ramboot
:=easy50712_DDR166M
46 DDR_CONFIG_easy50812_DDR166M_ramboot
:=easy50812
49 Package
/uboot-lantiq-arv4518PW
=$(call Package
/uboot-lantiq-template
,arv4518PW_flash
,NOR
)
50 Package
/uboot-lantiq-arv4518PW_ramboot
=$(call Package
/uboot-lantiq-template
,arv4518PW_ramboot
,RAM
)
51 Package
/uboot-lantiq-arv4518PW_brnboot
=$(call Package
/uboot-lantiq-template
,arv4518PW_brnboot
,BRN
)
52 Package
/uboot-lantiq-arv452CPW
=$(call Package
/uboot-lantiq-template
,arv452CPW_flash
,NOR
)
53 Package
/uboot-lantiq-arv452CPW_ramboot
=$(call Package
/uboot-lantiq-template
,arv452CPW_ramboot
,RAM
)
54 Package
/uboot-lantiq-arv452CPW_brnboot
=$(call Package
/uboot-lantiq-template
,arv452CPW_brnboot
,BRN
)
55 Package
/uboot-lantiq-arv752DPW
=$(call Package
/uboot-lantiq-template
,arv752DPW_flash
,NOR
)
56 Package
/uboot-lantiq-arv752DPW_ramboot
=$(call Package
/uboot-lantiq-template
,arv752DPW_ramboot
,RAM
)
57 Package
/uboot-lantiq-arv752DPW_brnboot
=$(call Package
/uboot-lantiq-template
,arv752DPW_brnboot
,BRN
)
58 Package
/uboot-lantiq-arv752DPW22
=$(call Package
/uboot-lantiq-template
,arv752DPW22_flash
,NOR
)
59 Package
/uboot-lantiq-arv752DPW22_ramboot
=$(call Package
/uboot-lantiq-template
,arv752DPW22_ramboot
,RAM
)
60 Package
/uboot-lantiq-arv752DPW22_brnboot
=$(call Package
/uboot-lantiq-template
,arv752DPW22_brnboot
,BRN
)
62 DDR_CONFIG_arv4518_ramboot
:=arcadyan_psc166
63 DDR_CONFIG_arv452C_ramboot
:=arcadyan_psc166
64 DDR_CONFIG_arv752DPW_ramboot
:=arcadyan_psc166
65 DDR_CONFIG_arv752DPW22_ramboot
:=arcadyan_psc166
69 cp
-r
$(CP_OPTS
) $(FILES_DIR
)/* $(PKG_BUILD_DIR
)/
71 find
$(PKG_BUILD_DIR
) -name .svn |
$(XARGS
) rm -rf
75 CROSS_COMPILE
=$(TARGET_CROSS
) \
79 define Build
/Configure
/Target
80 $(MAKE
) -s
-C
$(PKG_BUILD_DIR
) \
82 O
=$(PKG_BUILD_DIR
)/$(BUILD_VARIANT
) \
86 define Build
/Configure
87 $(call Build
/Configure
/Target
,$(BUILD_VARIANT
))
90 define Build
/Compile
/Target
91 $(MAKE
) -s
-C
$(PKG_BUILD_DIR
) \
93 O
=$(PKG_BUILD_DIR
)/$(1) \
98 $(call Build
/Compile
/Target
,$(BUILD_VARIANT
))
101 define Package
/uboot-lantiq-
$(BUILD_VARIANT
)/install
104 if
=$(PKG_BUILD_DIR
)/$(BUILD_VARIANT
)/u-boot.bin \
107 ifneq ($(findstring ramboot
,$(BUILD_VARIANT
)),)
108 if
[ -e
$(DDR_CONFIG_
$(BUILD_VARIANT
)).conf
]; then \
110 $(DDR_CONFIG_
$(BUILD_VARIANT
)).conf \
111 $(PKG_BUILD_DIR
)/$(BUILD_VARIANT
)/u-boot.srec \
117 $(eval
$(call BuildPackage
,uboot-lantiq-easy50712_DDR166M
))
118 $(eval
$(call BuildPackage
,uboot-lantiq-easy50712_DDR166M_ramboot
))
119 $(eval
$(call BuildPackage
,uboot-lantiq-easy50812_DDR166M
))
120 $(eval
$(call BuildPackage
,uboot-lantiq-easy50812_DDR166M_ramboot
))
121 $(eval
$(call BuildPackage
,uboot-lantiq-arv4518PW
))
122 $(eval
$(call BuildPackage
,uboot-lantiq-arv4518PW_brnboot
))
123 $(eval
$(call BuildPackage
,uboot-lantiq-arv4518PW_ramboot
))
124 $(eval
$(call BuildPackage
,uboot-lantiq-arv452CPW
))
125 $(eval
$(call BuildPackage
,uboot-lantiq-arv452CPW_brnboot
))
126 $(eval
$(call BuildPackage
,uboot-lantiq-arv452CPW_ramboot
))
127 $(eval
$(call BuildPackage
,uboot-lantiq-arv752DPW
))
128 $(eval
$(call BuildPackage
,uboot-lantiq-arv752DPW_brnboot
))
129 $(eval
$(call BuildPackage
,uboot-lantiq-arv752DPW_ramboot
))
130 $(eval
$(call BuildPackage
,uboot-lantiq-arv752DPW22
))
131 $(eval
$(call BuildPackage
,uboot-lantiq-arv752DPW22_brnboot
))
132 $(eval
$(call BuildPackage
,uboot-lantiq-arv752DPW22_ramboot
))