summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/barebox
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2024-10-11 14:01:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-11 15:57:44 +0100
commita9531159c55f018984c58ed0cea1da0e9263b2d2 (patch)
tree5c92935758884f1c5dbc042ee91630689ec1eb54 /meta/recipes-bsp/barebox
parent8ca1fd0b729a82a73324cfd70bd54f9818f72d1d (diff)
downloadpoky-a9531159c55f018984c58ed0cea1da0e9263b2d2.tar.gz
barebox-tools: add initial barebox tools support
Add initial support to build the barebox tools for the host and the target. Some of the tools are generic barebox utilities (like 'bareboximd' for image meta data inspection or 'bareboxenv' for accessing the barebox environment) some are SoC family-specific specific utilities (like 'imx-usb-loader' or 'omap3-usb-loader'). (From OE-Core rev: cb3de34a28cde3f9ebd52ba842da9f91c6f0fa66) Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/barebox')
-rw-r--r--meta/recipes-bsp/barebox/barebox-tools_2024.08.0.bb59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-bsp/barebox/barebox-tools_2024.08.0.bb b/meta/recipes-bsp/barebox/barebox-tools_2024.08.0.bb
new file mode 100644
index 0000000000..ed49ce5373
--- /dev/null
+++ b/meta/recipes-bsp/barebox/barebox-tools_2024.08.0.bb
@@ -0,0 +1,59 @@
1SUMMARY = "barebox bootloader tools"
2HOMEPAGE = "https://barebox.org/"
3SECTION = "bootloaders"
4
5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=f5125d13e000b9ca1f0d3364286c4192"
7
8DEPENDS = "bison-native flex-native libusb1"
9
10SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2"
11SRC_URI[sha256sum] = "b08a762da8d63dd18b4f2d9f5d0a8da001b6e608d1b3eff6dcebc6a2e575d535"
12
13S = "${WORKDIR}/barebox-${PV}"
14B = "${WORKDIR}/build"
15
16inherit pkgconfig
17
18EXTRA_OEMAKE = " \
19 ARCH=sandbox \
20 CROSS_COMPILE=${TARGET_PREFIX} -C ${S} O=${B} \
21 CROSS_PKG_CONFIG=pkg-config \
22 CC='${CC}' \
23 LD='${LD}' \
24 "
25
26do_compile:class-target () {
27 export userccflags="${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
28 export userldflags="${TARGET_LDFLAGS}${TOOLCHAIN_OPTIONS}"
29 oe_runmake targettools_defconfig
30 oe_runmake scripts
31}
32
33do_compile:class-native () {
34 oe_runmake hosttools_defconfig
35 oe_runmake scripts
36}
37
38BAREBOX_TOOLS = " \
39 bareboxenv \
40 bareboxcrc32 \
41 kernel-install \
42 bareboximd \
43 omap3-usb-loader \
44 omap4_usbboot \
45 imx/imx-usb-loader \
46 "
47
48BAREBOX_TOOLS_SUFFIX = ""
49BAREBOX_TOOLS_SUFFIX:class-target = "-target"
50
51do_install () {
52 install -d ${D}${bindir}
53
54 for tool in ${BAREBOX_TOOLS}; do
55 install -m 0755 scripts/${tool}${BAREBOX_TOOLS_SUFFIX} ${D}${bindir}/${tool##*/}
56 done
57}
58
59BBCLASSEXTEND = "native nativesdk"