diff options
author | Jaewon Lee <jaewon.lee@xilinx.com> | 2019-08-14 16:59:10 -0700 |
---|---|---|
committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2019-12-13 13:27:17 -0800 |
commit | 88b23d48026a49f2b6966832ec90651aa0f26af6 (patch) | |
tree | daf6984f9b04b08d02944551b788062e36957e04 | |
parent | eebb98f0a10271ed6f57c1934f9e1120031c5344 (diff) | |
download | meta-xilinx-88b23d48026a49f2b6966832ec90651aa0f26af6.tar.gz |
bootgen_1.0.bb: Adding initial bootgen recipe to build bootgen
Building and installing bootgen, a tool that lets you stitch
binary files together and generate device boot images.
native and nativesdk classes are inherited as well to allow native
version of bootgen to be built and to allow packaging of bootgen into an
sdk if added into the dependency.
Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r-- | meta-xilinx-bsp/recipes-bsp/bootgen/bootgen_1.0.bb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/bootgen/bootgen_1.0.bb b/meta-xilinx-bsp/recipes-bsp/bootgen/bootgen_1.0.bb new file mode 100644 index 00000000..16c89c46 --- /dev/null +++ b/meta-xilinx-bsp/recipes-bsp/bootgen/bootgen_1.0.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | SUMMARY = "Building and installing bootgen" | ||
2 | DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images" | ||
3 | |||
4 | LICENSE = "Apache-2.0" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c979df673927004a489691fc457facff" | ||
6 | |||
7 | S = "${WORKDIR}/git" | ||
8 | |||
9 | DEPENDS += "openssl" | ||
10 | RDEPENDS_${PN} += "openssl" | ||
11 | |||
12 | REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https" | ||
13 | BRANCH ?= "master" | ||
14 | SRCREV ?= "f9f477adf243fa40bc8c7316a7aac37a0efd426d" | ||
15 | |||
16 | BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" | ||
17 | SRC_URI = "${REPO};${BRANCHARG}" | ||
18 | |||
19 | EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}' | ||
20 | CXXFLAGS_append = " -std=c++0x" | ||
21 | |||
22 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}${bindir} | ||
26 | install -Dm 0755 ${S}/bootgen ${D}${bindir} | ||
27 | } | ||
28 | |||
29 | FILES_${PN} = "${bindir}/bootgen" | ||
30 | |||
31 | BBCLASSEXTEND = "native nativesdk" | ||