summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-mkimage/imx-mkimage_git.bb
blob: 7b3886e9e8d5f75a0bbc49f8d0a2f5f6cfb59661 (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
# Copyright (C) 2016 Freescale Semiconductor
# Copyright 2017-2022,2026 NXP

# NOTE: uses 'inherit native' directly, so a '-native' filename (as
# oelint.var.nativefilename suggests) would double the class suffix and break PN.
# That finding is a false positive here and is not inline-suppressible.
require imx-mkimage_git.inc

SUMMARY = "i.MX boot image generation tool"
DESCRIPTION = "Tooling to assemble i.MX boot images (mkimage_imx8 and related)."
HOMEPAGE = "https://github.com/nxp-imx/imx-mkimage"
SECTION = "bsp"
LICENSE = "GPL-2.0-only"
# Source ships no standalone license file; reference the common GPL-2.0-only text.
# nooelint: oelint.var.licenseremotefile
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"

inherit deploy native

EXTRA_OEMAKE = "SOC=iMX8M mkimage_imx8"

CFLAGS = "-O2 -Wall -std=c99 -I ${STAGING_INCDIR} -L ${STAGING_LIBDIR}"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 iMX8M/mkimage_imx8 ${D}${bindir}/mkimage_imx8m
    install -m 0755 iMX8M/mkimage_fit_atf.sh ${D}${bindir}/mkimage_fit_atf.sh
    install -m 0755 iMX8M/print_fit_hab.sh ${D}${bindir}/print_fit_hab.sh
    install -m 0755 mkimage_imx8 ${D}${bindir}/mkimage_imx8
}