2012-11-24 02:16:05 +08:00
|
|
|
#
|
2013-01-22 20:55:01 +08:00
|
|
|
# Copyright (C) 2012-2013 OpenWrt.org
|
2012-11-24 02:16:05 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=u-boot
|
2014-04-13 05:21:14 +08:00
|
|
|
PKG_VERSION:=2013.10
|
2012-11-24 02:16:05 +08:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2013-01-22 20:55:01 +08:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2013-10-28 23:15:05 +08:00
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
http://mirror2.openwrt.org/sources \
|
|
|
|
ftp://ftp.denx.de/pub/u-boot
|
2014-04-13 05:21:14 +08:00
|
|
|
PKG_MD5SUM:=a076a044b64371edc52f7e562b13f6b2
|
2012-11-24 02:16:05 +08:00
|
|
|
PKG_TARGETS:=bin
|
|
|
|
|
2014-11-30 07:45:53 +08:00
|
|
|
PKG_LICENSE:=GPL-2.0 GPL-2.0+
|
|
|
|
PKG_LICENSE_FILES:=Licenses/README
|
|
|
|
|
2014-04-13 05:21:40 +08:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2014-04-13 05:21:35 +08:00
|
|
|
FIRMWARE_LANTIQ_SOURCE:=$(TOPDIR)/target/linux/lantiq/files/firmware/lantiq
|
|
|
|
|
2012-11-24 02:16:05 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define uboot/Default
|
|
|
|
TITLE:=
|
2013-01-22 20:55:01 +08:00
|
|
|
SOC:=
|
|
|
|
DDR_SETTINGS:=
|
2012-11-24 02:16:05 +08:00
|
|
|
IMAGE:=
|
2014-04-22 16:08:10 +08:00
|
|
|
DEPS:=
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv4519pw_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan arv4519pw (RAM)
|
2013-01-22 20:55:01 +08:00
|
|
|
SOC:=danube
|
2012-11-24 02:16:05 +08:00
|
|
|
DDR_SETTINGS:=board/arcadyan/arv4519pw/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv4519pw_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan arv4519pw (NOR)
|
2013-01-22 20:55:01 +08:00
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
2014-04-13 05:21:26 +08:00
|
|
|
define uboot/arv4519pw_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan arv4519pw (BRN)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
2016-06-21 00:47:39 +08:00
|
|
|
define uboot/arv7506pw11_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan ARV7506PW11 (RAM)
|
|
|
|
SOC:=danube
|
|
|
|
DDR_SETTINGS:=board/arcadyan/arv7506pw11/ddr_settings.h
|
|
|
|
DEPS:=@TARGET_lantiq_xway
|
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv7506pw11_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan ARV7506PW11 (NOR)
|
|
|
|
SOC:=danube
|
|
|
|
DEPS:=@TARGET_lantiq_xway
|
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv7506pw11_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan ARV7506PW11 (BRN)
|
|
|
|
SOC:=danube
|
|
|
|
DEPS:=@TARGET_lantiq_xway
|
|
|
|
endef
|
|
|
|
|
2014-04-13 05:21:26 +08:00
|
|
|
define uboot/arv7510pw_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7510pw (RAM)
|
|
|
|
SOC:=danube
|
|
|
|
DDR_SETTINGS:=board/arcadyan/arv7510pw/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv7510pw_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7510pw (NOR)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv7510pw_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7510pw (BRN)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
2014-06-02 20:43:31 +08:00
|
|
|
define uboot/arv7510pw22_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7510pw22 (RAM)
|
|
|
|
SOC:=danube
|
|
|
|
DDR_SETTINGS:=board/arcadyan/arv7510pw22/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-06-02 20:43:31 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv7510pw22_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7510pw22 (NOR)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-06-02 20:43:31 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv7510pw22_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7510pw22 (BRN)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-06-02 20:43:31 +08:00
|
|
|
endef
|
|
|
|
|
2012-11-24 02:16:05 +08:00
|
|
|
define uboot/arv7518pw_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7518pw (RAM)
|
2013-01-22 20:55:01 +08:00
|
|
|
SOC:=danube
|
2012-11-24 02:16:05 +08:00
|
|
|
DDR_SETTINGS:=board/arcadyan/arv7518pw/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv7518pw_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7518pw (NOR)
|
2013-01-22 20:55:01 +08:00
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
2014-04-13 05:21:26 +08:00
|
|
|
define uboot/arv7518pw_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan arv7518pw (BRN)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv752dpw_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan arv752dpw (RAM)
|
|
|
|
SOC:=danube
|
|
|
|
DDR_SETTINGS:=board/arcadyan/arv752dpw/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv752dpw_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan arv752dpw (NOR)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv752dpw_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan arv752dpw (BRN)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv752dpw22_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan arv752dpw22 (RAM)
|
|
|
|
SOC:=danube
|
|
|
|
DDR_SETTINGS:=board/arcadyan/arv752dpw22/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv752dpw22_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan arv752dpw22 (NOR)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv752dpw22_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan arv752dpw22 (BRN)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:26 +08:00
|
|
|
endef
|
|
|
|
|
2015-07-07 21:45:10 +08:00
|
|
|
define uboot/arv8539pw22_ram
|
|
|
|
TITLE:=U-Boot for Speedport W 504V Typ A (RAM)
|
|
|
|
SOC:=danube
|
|
|
|
DDR_SETTINGS:=board/arcadyan/arv8539pw22/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2015-07-07 21:45:10 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv8539pw22_nor
|
|
|
|
TITLE:=U-Boot for Speedport W 504V Typ A (NOR)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2015-07-07 21:45:10 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/arv8539pw22_brn
|
|
|
|
TITLE:=U-Boot for Speedport W 504V Typ A (BRN)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2015-07-07 21:45:10 +08:00
|
|
|
endef
|
|
|
|
|
2012-11-24 02:16:05 +08:00
|
|
|
define uboot/gigasx76x_ram
|
|
|
|
TITLE:=U-Boot for Siemens Gigaset sx76x (RAM)
|
2013-01-22 20:55:01 +08:00
|
|
|
SOC:=danube
|
2012-11-24 02:16:05 +08:00
|
|
|
DDR_SETTINGS:=board/gigaset/sx76x/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/gigasx76x_nor
|
|
|
|
TITLE:=U-Boot for Siemens Gigaset sx76x (NOR)
|
2013-01-22 20:55:01 +08:00
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
2014-04-13 05:21:31 +08:00
|
|
|
define uboot/acmp252_ram
|
|
|
|
TITLE:=U-Boot for AudioCodes MP-252 (RAM)
|
|
|
|
SOC:=danube
|
|
|
|
DDR_SETTINGS:=board/audiocodes/acmp252/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:31 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/acmp252_nor
|
|
|
|
TITLE:=U-Boot for AudioCodes MP-252 (NOR)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:31 +08:00
|
|
|
endef
|
|
|
|
|
2014-04-13 05:21:18 +08:00
|
|
|
define uboot/easy50712_ram
|
|
|
|
TITLE:=U-Boot for Lantiq EASY50712 (RAM)
|
|
|
|
SOC:=danube
|
|
|
|
DDR_SETTINGS:=board/lantiq/easy50712/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:18 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/easy50712_nor
|
|
|
|
TITLE:=U-Boot for Lantiq EASY50712 (NOR)
|
|
|
|
SOC:=danube
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:18 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/easy50712_norspl
|
|
|
|
TITLE:=U-Boot for Lantiq EASY50712 (NOR SPL)
|
|
|
|
SOC:=danube
|
|
|
|
IMAGE:=u-boot.ltq.lzo.norspl
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xway
|
2014-04-13 05:21:18 +08:00
|
|
|
endef
|
|
|
|
|
2014-04-13 05:21:23 +08:00
|
|
|
define uboot/easy80920_ram
|
|
|
|
TITLE:=U-Boot for Lantiq EASY80920 (RAM)
|
|
|
|
SOC:=vr9
|
|
|
|
DDR_SETTINGS:=board/lantiq/easy80920/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-13 05:21:23 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/easy80920_nor
|
|
|
|
TITLE:=U-Boot for Lantiq EASY80920 (NOR)
|
|
|
|
SOC:=vr9
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-13 05:21:23 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/easy80920_norspl
|
|
|
|
TITLE:=U-Boot for Lantiq EASY80920 (NOR SPL)
|
|
|
|
SOC:=vr9
|
|
|
|
IMAGE:=u-boot.ltq.lzo.norspl
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-13 05:21:23 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/easy80920_sfspl
|
|
|
|
TITLE:=U-Boot for Lantiq EASY80920 (SPI SPL)
|
|
|
|
SOC:=vr9
|
|
|
|
IMAGE:=u-boot.ltq.lzo.sfspl
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-13 05:21:23 +08:00
|
|
|
endef
|
|
|
|
|
2014-04-22 16:08:23 +08:00
|
|
|
define uboot/fb3370_eva
|
|
|
|
TITLE:=U-Boot for AVM FRITZ3370 (EVA)
|
|
|
|
SOC:=vr9
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-22 16:08:23 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/fb3370_ram
|
|
|
|
TITLE:=U-Boot for AVM FRITZ3370 (RAM)
|
|
|
|
SOC:=vr9
|
|
|
|
DDR_SETTINGS:=board/avm/fb3370/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-22 16:08:23 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/fb3370_sfspl
|
|
|
|
TITLE:=U-Boot for AVM FRITZ3370 (SPI SPL)
|
|
|
|
SOC:=vr9
|
|
|
|
IMAGE:=u-boot.ltq.lzo.sfspl
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-22 16:08:23 +08:00
|
|
|
endef
|
|
|
|
|
2014-04-22 16:08:27 +08:00
|
|
|
define uboot/p2812hnufx_ram
|
|
|
|
TITLE:=U-Boot for ZyXEL P-2812HNU-Fx (RAM)
|
|
|
|
SOC:=vr9
|
|
|
|
DDR_SETTINGS:=board/zyxel/p2812hnufx/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-22 16:08:27 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/p2812hnufx_nandspl
|
|
|
|
TITLE:=U-Boot for ZyXEL P-2812HNU-Fx (NAND SPL)
|
|
|
|
SOC:=vr9
|
|
|
|
IMAGE:=u-boot.ltq.lzo.nandspl
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2014-04-22 16:08:27 +08:00
|
|
|
endef
|
|
|
|
|
2015-06-05 22:11:45 +08:00
|
|
|
define uboot/vgv7510kw22_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan VGV7510KW22 (BRN)
|
|
|
|
SOC:=vr9
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2015-06-05 22:11:45 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/vgv7510kw22_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan VGV7510KW22 (NOR)
|
|
|
|
SOC:=vr9
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2015-06-05 22:11:45 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/vgv7510kw22_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan VGV7510KW22 (RAM)
|
|
|
|
SOC:=vr9
|
|
|
|
DDR_SETTINGS:=board/arcadyan/vgv7510kw22/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2015-06-05 22:11:45 +08:00
|
|
|
endef
|
2014-04-13 05:21:23 +08:00
|
|
|
|
2016-05-27 05:08:27 +08:00
|
|
|
define uboot/vgv7519_brn
|
|
|
|
TITLE:=U-Boot for Arcadyan VGV7519 (BRN)
|
|
|
|
SOC:=vr9
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2016-05-27 05:08:27 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/vgv7519_nor
|
|
|
|
TITLE:=U-Boot for Arcadyan VGV7519 (NOR)
|
|
|
|
SOC:=vr9
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2016-05-27 05:08:27 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define uboot/vgv7519_ram
|
|
|
|
TITLE:=U-Boot for Arcadyan VGV7519 (RAM)
|
|
|
|
SOC:=vr9
|
|
|
|
DDR_SETTINGS:=board/arcadyan/vgv7519/ddr_settings.h
|
2016-06-08 12:42:18 +08:00
|
|
|
DEPS:=@TARGET_lantiq_xrx200
|
2016-05-27 05:08:27 +08:00
|
|
|
endef
|
|
|
|
|
2012-11-24 02:16:05 +08:00
|
|
|
UBOOTS:= \
|
2014-04-13 05:21:26 +08:00
|
|
|
arv4519pw_ram arv4519pw_nor arv4519pw_brn \
|
2016-06-21 00:47:39 +08:00
|
|
|
arv7506pw11_ram arv7506pw11_nor arv7506pw11_brn \
|
2014-04-13 05:21:26 +08:00
|
|
|
arv7510pw_ram arv7510pw_nor arv7510pw_brn \
|
2014-06-02 20:43:31 +08:00
|
|
|
arv7510pw22_ram arv7510pw22_nor arv7510pw22_brn \
|
2014-04-13 05:21:26 +08:00
|
|
|
arv7518pw_ram arv7518pw_nor arv7518pw_brn \
|
|
|
|
arv752dpw_ram arv752dpw_nor arv752dpw_brn \
|
|
|
|
arv752dpw22_ram arv752dpw22_nor arv752dpw22_brn \
|
2016-05-21 18:13:36 +08:00
|
|
|
arv8539pw22_brn arv8539pw22_nor arv8539pw22_ram \
|
2014-04-13 05:21:18 +08:00
|
|
|
gigasx76x_ram gigasx76x_nor \
|
2014-04-13 05:21:31 +08:00
|
|
|
acmp252_ram acmp252_nor \
|
2014-04-13 05:21:23 +08:00
|
|
|
easy50712_ram easy50712_nor easy50712_norspl \
|
2014-04-22 16:08:23 +08:00
|
|
|
easy80920_ram easy80920_nor easy80920_norspl easy80920_sfspl \
|
2014-04-22 16:08:27 +08:00
|
|
|
fb3370_eva fb3370_ram fb3370_sfspl \
|
2015-06-05 22:11:45 +08:00
|
|
|
p2812hnufx_ram p2812hnufx_nandspl \
|
2016-05-27 05:08:27 +08:00
|
|
|
vgv7510kw22_brn vgv7510kw22_nor vgv7510kw22_ram \
|
|
|
|
vgv7519_brn vgv7519_nor vgv7519_ram
|
2012-11-24 02:16:05 +08:00
|
|
|
|
|
|
|
define Package/uboot/template
|
|
|
|
define Package/uboot-lantiq-$(1)
|
|
|
|
SECTION:=boot
|
|
|
|
CATEGORY:=Boot Loaders
|
2016-08-02 15:31:55 +08:00
|
|
|
DEPENDS:=$(3) @!IN_SDK
|
2012-11-24 02:16:05 +08:00
|
|
|
TITLE:=$(2)
|
|
|
|
URL:=http://www.denx.de/wiki/U-Boot
|
|
|
|
VARIANT:=$(1)
|
|
|
|
MAINTAINER:=Luka Perkov <luka@openwrt.org>
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
define BuildUBootPackage
|
|
|
|
$(eval $(uboot/Default))
|
|
|
|
$(eval $(uboot/$(1)))
|
2014-04-22 16:08:10 +08:00
|
|
|
DEPS:=$(uboot/$(1)/DEPS)
|
|
|
|
$(call Package/uboot/template,$(1),$(TITLE),$(DEPS))
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
2016-05-27 05:08:26 +08:00
|
|
|
define CompressVR9Firmware
|
|
|
|
$(STAGING_DIR_HOST)/bin/lzma e \
|
|
|
|
$(FIRMWARE_LANTIQ_SOURCE)/vr9_phy$(1)_a$(2)x.bin \
|
2014-04-13 05:21:35 +08:00
|
|
|
$(PKG_BUILD_DIR)/arch/mips/cpu/mips32/vrx200/fw_phy$(1)_a$(2)x.blob
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
2014-04-22 16:08:15 +08:00
|
|
|
mkdir -p $(PKG_BUILD_DIR)/arch/mips/cpu/mips32/vrx200/
|
2016-05-27 05:08:26 +08:00
|
|
|
$(call CompressVR9Firmware,11g,1)
|
|
|
|
$(call CompressVR9Firmware,11g,2)
|
|
|
|
$(call CompressVR9Firmware,22f,1)
|
|
|
|
$(call CompressVR9Firmware,22f,2)
|
2014-04-13 05:21:35 +08:00
|
|
|
endef
|
|
|
|
|
2013-01-22 20:55:01 +08:00
|
|
|
define Build/Configure
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) $(BUILD_VARIANT)_config
|
|
|
|
endef
|
2012-11-24 02:16:05 +08:00
|
|
|
|
|
|
|
define Build/Compile
|
2013-01-22 20:55:01 +08:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS)
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/uboot/install/default
|
2013-01-22 20:55:01 +08:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_BUILD_DIR)/$(2) \
|
|
|
|
$(BIN_DIR)/uboot-$(BOARD)-$(1)/openwrt-$(BOARD)-$(1)-u-boot.img
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
|
2013-01-22 20:55:01 +08:00
|
|
|
define Package/uboot/install/uart
|
|
|
|
awk -f $(PKG_BUILD_DIR)/tools/lantiq_ram_init_uart.awk \
|
|
|
|
-v soc=$(2) $(PKG_BUILD_DIR)/$(3) \
|
|
|
|
> $(PKG_BUILD_DIR)/ddr_settings
|
|
|
|
perl $(PKG_BUILD_DIR)/tools/gct.pl \
|
|
|
|
$(PKG_BUILD_DIR)/ddr_settings $(PKG_BUILD_DIR)/u-boot.srec \
|
|
|
|
$(BIN_DIR)/uboot-$(BOARD)-$(1)/openwrt-$(BOARD)-$(1)-u-boot.asc
|
|
|
|
endef
|
|
|
|
|
2012-11-24 02:16:05 +08:00
|
|
|
define Package/uboot/install/template
|
|
|
|
define Package/uboot-lantiq-$(1)/install
|
2013-01-22 20:55:01 +08:00
|
|
|
$(call Package/uboot/install/default,$(1),$(if $(IMAGE),$(IMAGE),u-boot.bin))
|
|
|
|
$(if $(DDR_SETTINGS), \
|
|
|
|
$(call Package/uboot/install/uart,$(1),$(SOC),$(DDR_SETTINGS)) \
|
|
|
|
)
|
2012-11-24 02:16:05 +08:00
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(foreach u,$(UBOOTS), \
|
|
|
|
$(eval $(call BuildUBootPackage,$(u))) \
|
2013-01-22 20:55:01 +08:00
|
|
|
$(eval $(call Package/uboot/install/template,$(u))) \
|
2012-11-24 02:16:05 +08:00
|
|
|
$(eval $(call BuildPackage,uboot-lantiq-$(u))) \
|
|
|
|
)
|