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