From 88b23d48026a49f2b6966832ec90651aa0f26af6 Mon Sep 17 00:00:00 2001 From: Jaewon Lee Date: Wed, 14 Aug 2019 16:59:10 -0700 Subject: 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 Signed-off-by: Alejandro Enedino Hernandez Samaniego Signed-off-by: Manjukumar Matha --- meta-xilinx-bsp/recipes-bsp/bootgen/bootgen_1.0.bb | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 meta-xilinx-bsp/recipes-bsp/bootgen/bootgen_1.0.bb 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 @@ +SUMMARY = "Building and installing bootgen" +DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c979df673927004a489691fc457facff" + +S = "${WORKDIR}/git" + +DEPENDS += "openssl" +RDEPENDS_${PN} += "openssl" + +REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https" +BRANCH ?= "master" +SRCREV ?= "f9f477adf243fa40bc8c7316a7aac37a0efd426d" + +BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}" +SRC_URI = "${REPO};${BRANCHARG}" + +EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}' +CXXFLAGS_append = " -std=c++0x" + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_install() { + install -d ${D}${bindir} + install -Dm 0755 ${S}/bootgen ${D}${bindir} +} + +FILES_${PN} = "${bindir}/bootgen" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf