aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot-zx3_git.bb
blob: 7ff6a977d5864eb2b6c4cca39df2d22351079650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This recipe allows to build an U-Boot for the ZX3-PM3 and ZE7000
# boards
# (C) NetModule 2014

require recipes-bsp/u-boot/u-boot.inc

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

PR = "r0"
PV = "2013.04-git"
SRC_URI = "git://github.com/netmodule/uboot-ze7000.git;protocol=https"

SRCREV = "${AUTOREV}"

UBOOT_MACHINE_zx3-pm3-zynq7 = "zx3_pm3"
UBOOT_MACHINE_ze7000_zynq7 = "zx3_ze7000"

S = "${WORKDIR}/git"

# Also deploy u-boot elf file with same file format as bin file
# Based on u-boox-extra.inc from meta-xilinx
UBOOTXTENSION ?= "-${MACHINE}"
SRC_ELF ?= "u-boot"
DEST_ELF ?= "u-boot${UBOOTXTENSION}-${PV}-${PR}.elf"
ELF_SYMLINK ?= "u-boot${UBOOTXTENSION}.elf"
do_deploy_append() {
	install ${S}/${SRC_ELF} ${DEPLOYDIR}/${DEST_ELF}

	cd ${DEPLOYDIR}
	rm -f ${SRC_ELF} ${ELF_SYMLINK}
	ln -sf ${DEST_ELF} ${ELF_SYMLINK}
	ln -sf ${DEST_ELF} ${SRC_ELF}.elf
}

PACKAGE_ARCH = "${MACHINE_ARCH}"