diff options
Diffstat (limited to 'meta/recipes-bsp/u-boot/u-boot-tools.inc')
-rw-r--r-- | meta/recipes-bsp/u-boot/u-boot-tools.inc | 55 |
1 files changed, 32 insertions, 23 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot-tools.inc b/meta/recipes-bsp/u-boot/u-boot-tools.inc index 4ed936a70d..f3010763c0 100644 --- a/meta/recipes-bsp/u-boot/u-boot-tools.inc +++ b/meta/recipes-bsp/u-boot/u-boot-tools.inc | |||
@@ -1,26 +1,30 @@ | |||
1 | SUMMARY = "U-Boot bootloader tools" | 1 | SUMMARY = "U-Boot bootloader tools" |
2 | DEPENDS += "openssl" | 2 | DEPENDS += "gnutls openssl util-linux swig-native" |
3 | 3 | ||
4 | PROVIDES = "${MLPREFIX}u-boot-mkimage ${MLPREFIX}u-boot-mkenvimage" | 4 | inherit python3native |
5 | PROVIDES_class-native = "u-boot-mkimage-native u-boot-mkenvimage-native" | 5 | export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}" |
6 | 6 | ||
7 | PACKAGES += "${PN}-mkimage ${PN}-mkenvimage" | 7 | PROVIDES = "${MLPREFIX}u-boot-mkimage ${MLPREFIX}u-boot-mkenvimage ${MLPREFIX}u-boot-mkeficapsule" |
8 | PROVIDES:class-native = "u-boot-mkimage-native u-boot-mkenvimage-native u-boot-mkeficapsule-native" | ||
9 | |||
10 | PACKAGES += "${PN}-mkimage ${PN}-mkenvimage ${PN}-mkeficapsule" | ||
8 | 11 | ||
9 | # Required for backward compatibility with "u-boot-mkimage-xxx.bb" | 12 | # Required for backward compatibility with "u-boot-mkimage-xxx.bb" |
10 | RPROVIDES_${PN}-mkimage = "u-boot-mkimage" | 13 | RPROVIDES:${PN}-mkimage = "u-boot-mkimage" |
11 | RREPLACES_${PN}-mkimage = "u-boot-mkimage" | 14 | RREPLACES:${PN}-mkimage = "u-boot-mkimage" |
12 | RCONFLICTS_${PN}-mkimage = "u-boot-mkimage" | 15 | RCONFLICTS:${PN}-mkimage = "u-boot-mkimage" |
13 | 16 | ||
14 | EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1' | 17 | EXTRA_OEMAKE:class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1' |
15 | EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1' | 18 | EXTRA_OEMAKE:class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1' |
16 | EXTRA_OEMAKE_class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1' | 19 | EXTRA_OEMAKE:class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1' |
17 | 20 | ||
18 | SED_CONFIG_EFI = '-e "s/CONFIG_EFI_LOADER=.*/# CONFIG_EFI_LOADER is not set/"' | 21 | SED_CONFIG_EFI = '-e "s/CONFIG_EFI_LOADER=.*/# CONFIG_EFI_LOADER is not set/"' |
19 | SED_CONFIG_EFI_x86 = '' | 22 | SED_CONFIG_EFI:x86 = '' |
20 | SED_CONFIG_EFI_x86-64 = '' | 23 | SED_CONFIG_EFI:x86-64 = '' |
21 | SED_CONFIG_EFI_arm = '' | 24 | SED_CONFIG_EFI:arm = '' |
22 | SED_CONFIG_EFI_armeb = '' | 25 | SED_CONFIG_EFI:armeb = '' |
23 | SED_CONFIG_EFI_aarch64 = '' | 26 | SED_CONFIG_EFI:aarch64 = '' |
27 | SED_CONFIG_EFI:loongarch64 = '' | ||
24 | 28 | ||
25 | do_compile () { | 29 | do_compile () { |
26 | # Yes, this is crazy. If you build on a system with git < 2.14 from scratch, the tree will | 30 | # Yes, this is crazy. If you build on a system with git < 2.14 from scratch, the tree will |
@@ -38,7 +42,7 @@ do_compile () { | |||
38 | # (i.e. creating a hardlink dirties the index) | 42 | # (i.e. creating a hardlink dirties the index) |
39 | cd ${S}; git diff; cd ${B} | 43 | cd ${S}; git diff; cd ${B} |
40 | 44 | ||
41 | oe_runmake -C ${S} sandbox_defconfig O=${B} | 45 | oe_runmake -C ${S} tools-only_defconfig O=${B} |
42 | 46 | ||
43 | # Disable CONFIG_CMD_LICENSE, license.h is not used by tools and | 47 | # Disable CONFIG_CMD_LICENSE, license.h is not used by tools and |
44 | # generating it requires bin2header tool, which for target build | 48 | # generating it requires bin2header tool, which for target build |
@@ -66,16 +70,21 @@ do_install () { | |||
66 | # fit_check_sign | 70 | # fit_check_sign |
67 | install -m 0755 tools/fit_check_sign ${D}${bindir}/uboot-fit_check_sign | 71 | install -m 0755 tools/fit_check_sign ${D}${bindir}/uboot-fit_check_sign |
68 | ln -sf uboot-fit_check_sign ${D}${bindir}/fit_check_sign | 72 | ln -sf uboot-fit_check_sign ${D}${bindir}/fit_check_sign |
73 | |||
74 | # mkeficapsule | ||
75 | install -m 0755 tools/mkeficapsule ${D}${bindir}/uboot-mkeficapsule | ||
76 | ln -sf uboot-mkeficapsule ${D}${bindir}/mkeficapsule | ||
69 | } | 77 | } |
70 | 78 | ||
71 | ALLOW_EMPTY_${PN} = "1" | 79 | ALLOW_EMPTY:${PN} = "1" |
72 | FILES_${PN} = "" | 80 | FILES:${PN} = "" |
73 | FILES_${PN}-mkimage = "${bindir}/uboot-mkimage ${bindir}/mkimage ${bindir}/uboot-dumpimage ${bindir}/dumpimage ${bindir}/uboot-fit_check_sign ${bindir}/fit_check_sign" | 81 | FILES:${PN}-mkimage = "${bindir}/uboot-mkimage ${bindir}/mkimage ${bindir}/uboot-dumpimage ${bindir}/dumpimage ${bindir}/uboot-fit_check_sign ${bindir}/fit_check_sign" |
74 | FILES_${PN}-mkenvimage = "${bindir}/uboot-mkenvimage ${bindir}/mkenvimage" | 82 | FILES:${PN}-mkenvimage = "${bindir}/uboot-mkenvimage ${bindir}/mkenvimage" |
83 | FILES:${PN}-mkeficapsule = "${bindir}/uboot-mkeficapsule ${bindir}/mkeficapsule" | ||
75 | 84 | ||
76 | RDEPENDS_${PN}-mkimage += "dtc" | 85 | RDEPENDS:${PN}-mkimage += "dtc" |
77 | RDEPENDS_${PN} += "${PN}-mkimage ${PN}-mkenvimage" | 86 | RDEPENDS:${PN} += "${PN}-mkimage ${PN}-mkenvimage ${PN}-mkeficapsule" |
78 | RDEPENDS_${PN}_class-native = "" | 87 | RDEPENDS:${PN}:class-native = "" |
79 | 88 | ||
80 | BBCLASSEXTEND = "native nativesdk" | 89 | BBCLASSEXTEND = "native nativesdk" |
81 | 90 | ||