diff options
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc.inc')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 52 |
1 files changed, 23 insertions, 29 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 983681a1b..b4f0cab8c 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
@@ -1,44 +1,22 @@ | |||
1 | DEPENDS = "linux-libc-headers perl-native" | ||
2 | SECTION = "libs" | ||
3 | DESCRIPTION = "klibc is intended to be a minimalistic libc subset for \ | 1 | DESCRIPTION = "klibc is intended to be a minimalistic libc subset for \ |
4 | use with initramfs. It is deliberately written for small size, \ | 2 | use with initramfs. It is deliberately written for small size, \ |
5 | minimal entaglement, and portability, not speed." | 3 | minimal entaglement, and portability, not speed." |
4 | SECTION = "libs" | ||
6 | LICENSE = "BSD-3-Clause & GPL-2.0 & MIT & Zlib" | 5 | LICENSE = "BSD-3-Clause & GPL-2.0 & MIT & Zlib" |
7 | LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8b" | 6 | LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8b" |
8 | 7 | DEPENDS = "linux-libc-headers perl-native" | |
9 | # Prevents do_package failures with: | ||
10 | # debugsources.list: No such file or directory: | ||
11 | INHIBIT_PACKAGE_STRIP = "1" | ||
12 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
13 | |||
14 | KLIBC_ARCH = '${TARGET_ARCH}' | ||
15 | KLIBC_ARCH_aarch64 = 'arm64' | ||
16 | KLIBC_ARCH_armeb = 'arm' | ||
17 | KLIBC_ARCH_mipsel = 'mips' | ||
18 | KLIBC_ARCH_x86 = 'i386' | ||
19 | KLIBC_ARCH_x86-64 = 'x86_64' | ||
20 | KLIBC_ARCH_i486 = 'i386' | ||
21 | KLIBC_ARCH_i586 = 'i386' | ||
22 | KLIBC_ARCH_i686 = 'i386' | ||
23 | KLIBC_ARCH_pentium = 'i386' | ||
24 | KLIBC_ARCH_powerpc = 'ppc' | ||
25 | KLIBC_ARCH_powerpc64 = 'ppc64' | ||
26 | |||
27 | export FIX_ARMV4_EABI_BX = "${FIX_V4BX}" | ||
28 | |||
29 | SRCREV = "f0440baf7f2dc1d9a25863c184d0a8fb73c4ee6c" | 8 | SRCREV = "f0440baf7f2dc1d9a25863c184d0a8fb73c4ee6c" |
30 | SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git" | ||
31 | 9 | ||
10 | SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git" | ||
32 | SRC_URI_append_linux-gnueabi = " file://klibc-config-eabi.patch \ | 11 | SRC_URI_append_linux-gnueabi = " file://klibc-config-eabi.patch \ |
33 | file://armv4-fix-v4bx.patch \ | 12 | file://armv4-fix-v4bx.patch \ |
34 | " | 13 | " |
35 | SRC_URI_append_linux-uclibceabi = " file://klibc-config-eabi.patch \ | 14 | SRC_URI_append_linux-uclibceabi = " file://klibc-config-eabi.patch \ |
36 | file://armv4-fix-v4bx.patch \ | 15 | file://armv4-fix-v4bx.patch \ |
37 | " | 16 | " |
38 | |||
39 | SRC_URI += "file://klibc-linux-libc-dev.patch \ | 17 | SRC_URI += "file://klibc-linux-libc-dev.patch \ |
40 | file://staging.patch \ | 18 | file://staging.patch \ |
41 | " | 19 | " |
42 | 20 | ||
43 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
44 | 22 | ||
@@ -48,10 +26,26 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ | |||
48 | 'prefix=${exec_prefix}' \ | 26 | 'prefix=${exec_prefix}' \ |
49 | 'INSTALLROOT=${D}' \ | 27 | 'INSTALLROOT=${D}' \ |
50 | 'SHLIBDIR=${libdir}' \ | 28 | 'SHLIBDIR=${libdir}' \ |
51 | " | 29 | " |
30 | |||
31 | export FIX_ARMV4_EABI_BX = "${FIX_V4BX}" | ||
52 | 32 | ||
53 | do_configure () { | 33 | do_configure () { |
54 | ln -sf "${STAGING_DIR_TARGET}${exec_prefix}" linux | 34 | ln -sf "${STAGING_DIR_TARGET}${exec_prefix}" linux |
55 | } | 35 | } |
56 | 36 | ||
37 | INHIBIT_PACKAGE_STRIP = "1" | ||
38 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
39 | KLIBC_ARCH = "${TARGET_ARCH}" | ||
40 | KLIBC_ARCH_aarch64 = "arm64" | ||
41 | KLIBC_ARCH_armeb = "arm" | ||
42 | KLIBC_ARCH_mipsel = "mips" | ||
43 | KLIBC_ARCH_x86 = "i386" | ||
44 | KLIBC_ARCH_x86-64 = "x86_64" | ||
45 | KLIBC_ARCH_i486 = "i386" | ||
46 | KLIBC_ARCH_i586 = "i386" | ||
47 | KLIBC_ARCH_i686 = "i386" | ||
48 | KLIBC_ARCH_pentium = "i386" | ||
49 | KLIBC_ARCH_powerpc = "ppc" | ||
50 | KLIBC_ARCH_powerpc64 = "ppc64" | ||
57 | THIS_LIBKLIBC = "libklibc (= ${PV})" | 51 | THIS_LIBKLIBC = "libklibc (= ${PV})" |