2 # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
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
)/image.mk
11 PKG_NAME
:=uboot-layerscape-32bit
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_URL
:=https
://github.com
/fsl-jyt
/uboot-ls-32b.git
19 PKG_SOURCE_VERSION
:=719f8b606334bc73367f78c204dce69786963b65
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
23 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
24 PKG_LICENSE_FILES
:=Licenses
/README
26 include $(INCLUDE_DIR
)/package.mk
33 define uboot
/ls1043ardb
34 TITLE
:=U-Boot binary
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1043ardb
32b Dev Board
35 CONFIG
=ls1043ardb-uboot.bin
38 define uboot
/ls1012ardb
39 TITLE
:=U-Boot binary
$(PKG_NAME
)-$(PKG_VERSION
) for NXP ls1012ardb
32b Dev Board
40 CONFIG
=ls1012ardb-uboot.bin.swap
47 define Package
/uboot
/template
48 define Package
/uboot-layerscape-32b-
$(1)
50 CATEGORY
:=Boot Loaders
51 DEPENDS
:= @TARGET_layerscape_32b
53 URL
:=https
://github.com
/fsl-jyt
/uboot-ls-32b.git
55 MAINTAINER
:=Jiang Yutang
<jiangyutang1978@gmail.com
>
59 define BuildUBootPackage
60 $(eval
$(uboot
/Default
))
62 $(call Package
/uboot
/template
,$(1),$(TITLE
))
66 $(eval
$(call uboot
/$(BUILD_VARIANT
)))
67 UBOOT_CONFIG
:=$(if
$(CONFIG
),$(CONFIG
),$(BUILD_VARIANT
))
70 define Build
/Configure
76 define Package
/uboot
/install/default
77 $(CP
) $(PKG_BUILD_DIR
)/$(UBOOT_CONFIG
) $(KDIR
)/$(1)-32b-uboot.bin
80 define Package
/uboot
/install/template
81 define Package
/uboot-layerscape-32b-
$(1)/install
82 $(call Package
/uboot
/install/default
,$(2))
86 $(foreach u
,$(UBOOTS
), \
87 $(eval
$(call Package
/uboot
/install/template
,$(u
),$(u
))) \
90 $(foreach u
,$(UBOOTS
), \
91 $(eval
$(call BuildUBootPackage
,$(u
))) \
92 $(eval
$(call BuildPackage
,uboot-layerscape-32b-
$(u
))) \