projects
/
openwrt-github
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[uboot-lantiq] httpd failsafe - add image check and flash access
[openwrt-github/.git]
/
package
/
uboot-lantiq
/
Makefile
diff --git
a/package/uboot-lantiq/Makefile
b/package/uboot-lantiq/Makefile
index fb9b668a389ff139095ad2c5c4128f332d9b6856..985f3638ae3da2f8ecfa6f0da396caf6c4821089 100644
(file)
--- a/
package/uboot-lantiq/Makefile
+++ b/
package/uboot-lantiq/Makefile
@@
-25,7
+25,7
@@
define Package/uboot-lantiq
CATEGORY:=Boot Loaders
DEPENDS:=@TARGET_ifxmips
TITLE:=U-Boot for Lantiq reference boards
CATEGORY:=Boot Loaders
DEPENDS:=@TARGET_ifxmips
TITLE:=U-Boot for Lantiq reference boards
- URL:=http://www.denx.de/wiki/U
Boot/WebHome
+ URL:=http://www.denx.de/wiki/U
-Boot
endef
define Build/Prepare
endef
define Build/Prepare
@@
-35,12
+35,20
@@
define Build/Prepare
find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
endef
find $(PKG_BUILD_DIR) -name .svn | $(XARGS) rm -rf
endef
-UBOOT_CONFIG:=easy50712_DDR166M
+UBOOT_CONFIG:=$(call qstrip,$(CONFIG_UBOOT_CONFIG))
+UBOOT_DDR_CONFIG:=$(call qstrip,$(CONFIG_UBOOT_DDR_CONFIG))
+
UBOOT_MAKE_OPTS:= \
CROSS_COMPILE=$(TARGET_CROSS) \
ENDIANNESS= \
V=1
UBOOT_MAKE_OPTS:= \
CROSS_COMPILE=$(TARGET_CROSS) \
ENDIANNESS= \
V=1
+define Package/uboot-lantiq/config
+ menu "configuration"
+ source "$(SOURCE)/Config.in"
+ endmenu
+endef
+
define Build/Configure/Target
$(MAKE) -s -C $(PKG_BUILD_DIR) \
$(UBOOT_MAKE_OPTS) \
define Build/Configure/Target
$(MAKE) -s -C $(PKG_BUILD_DIR) \
$(UBOOT_MAKE_OPTS) \
@@
-50,7
+58,9
@@
endef
define Build/Configure
$(call Build/Configure/Target,$(UBOOT_CONFIG))
define Build/Configure
$(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
define Build/Compile/Target
endef
define Build/Compile/Target
@@
-62,7
+72,9
@@
endef
define Build/Compile
$(call Build/Compile/Target,$(UBOOT_CONFIG))
define Build/Compile
$(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
define Package/uboot-lantiq/install
endef
define Package/uboot-lantiq/install
@@
-71,12
+83,14
@@
define Package/uboot-lantiq/install
if=$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)/u-boot.bin \
of=$(1)/$(UBOOT_CONFIG)/u-boot.bin \
bs=64k conv=sync
if=$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)/u-boot.bin \
of=$(1)/$(UBOOT_CONFIG)/u-boot.bin \
bs=64k conv=sync
- if [ -e $(UBOOT_CONFIG).conf ]; then \
+ifeq ($(CONFIG_UBOOT_RAMBOOT),y)
+ if [ -e $(UBOOT_DDR_CONFIG) ]; then \
perl ./gct \
perl ./gct \
- $(UBOOT_
CONFIG).conf
\
+ $(UBOOT_
DDR_CONFIG)
\
$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)_ramboot/u-boot.srec \
$(1)/$(UBOOT_CONFIG)/u-boot.asc; \
fi
$(PKG_BUILD_DIR)/$(UBOOT_CONFIG)_ramboot/u-boot.srec \
$(1)/$(UBOOT_CONFIG)/u-boot.asc; \
fi
+endif
endef
$(eval $(call BuildPackage,uboot-lantiq))
endef
$(eval $(call BuildPackage,uboot-lantiq))