layerscape: put u-boot and ucode images into image staging directory
[openwrt/staging/yousong.git] / package / boot / uboot-layerscape-32b / Makefile
1 #
2 # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=uboot-layerscape-32bit
11 PKG_VERSION:=v1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_MIRROR_HASH:=b62f4a55882ffb6b57da24ad9eaa98237141941d273e06a2244220a3e6b82ce7
16 PKG_SOURCE_URL:=https://github.com/fsl-jyt/uboot-ls-32b.git
17 PKG_SOURCE_VERSION:=763de09cc7265e3147e2df2e15f91c73231907f4
18
19 PKG_LICENSE:=GPL-2.0 GPL-2.0+
20 PKG_LICENSE_FILES:=Licenses/README
21
22 PKG_MAINTAINER:=Jiang Yutang <jiangyutang1978@gmail.com>
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/kernel.mk
26
27 define Package/uboot-layerscape-32b
28 SECTION:=boot
29 CATEGORY:=Boot Loaders
30 DEPENDS:=@TARGET_layerscape_32b
31 TITLE:=32-bit U-Boot for Layerscape boards
32 DEFAULT:=y
33 HIDDEN:=1
34 endef
35
36 define Build/Configure
37
38 endef
39
40 define Build/Compile
41
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
46 $(CP) $(PKG_BUILD_DIR)/ls1043ardb-uboot.bin $(STAGING_DIR_IMAGE)/ls1043ardb-32b-uboot.bin
47 $(CP) $(PKG_BUILD_DIR)/ls1046ardb-uboot.bin $(STAGING_DIR_IMAGE)/ls1046ardb-32b-uboot.bin
48 $(CP) $(PKG_BUILD_DIR)/ls1012ardb-uboot.bin.swap $(STAGING_DIR_IMAGE)/ls1012ardb-32b-uboot.bin
49 endef
50
51 $(eval $(call BuildPackage,uboot-layerscape-32b))