blob: f00e31a69a37257ad8c540af758e8446da86b5d6 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "klibc is intended to be a minimalistic libc subset for \
2use with initramfs. It is deliberately written for small size, \
3minimal entaglement, and portability, not speed."
4SECTION = "libs"
5LICENSE = "BSD-3-Clause & GPL-2.0 & MIT & Zlib"
6LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8b"
7DEPENDS = "linux-libc-headers perl-native"
8SRCREV = "4d19974d7020488f63651244e1f9f51727c3f66c"
9
10SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git"
11SRC_URI_append_linux-gnueabi = " file://klibc-config-eabi.patch \
12 file://armv4-fix-v4bx.patch \
13 "
14SRC_URI_append_linux-uclibceabi = " file://klibc-config-eabi.patch \
15 file://armv4-fix-v4bx.patch \
16 "
17SRC_URI += "file://klibc-linux-libc-dev.patch \
18 file://staging.patch \
19 file://klcc-consider-sysroot.patch \
20 "
21
22S = "${WORKDIR}/git"
23
24EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
25 'CROSS_COMPILE=${TARGET_PREFIX}' \
26 'KLIBCKERNELSRC=${STAGING_DIR_TARGET}${exec_prefix}' \
27 'KLIBCLIBGCC=${STAGING_DIR_TARGET}${libdir}/${TARGET_SYS}/*/libgcc.a' \
28 'prefix=${exec_prefix}' \
29 'INSTALLROOT=${D}' \
Patrick Williamsddad1a12017-02-23 20:36:32 -060030 'INSTALLDIR=${libdir}/klibc' \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031 'SHLIBDIR=${libdir}' \
32 "
33
34export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
35
36do_configure () {
37 ln -sf "${STAGING_DIR_TARGET}${exec_prefix}" linux
38}
39
40INHIBIT_PACKAGE_STRIP = "1"
41INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
42INSANE_SKIP_${PN} = "already-stripped"
43INSANE_SKIP_libklibc-dev = "dev-elf"
44KLIBC_ARCH = "${TARGET_ARCH}"
45KLIBC_ARCH_aarch64 = "arm64"
46KLIBC_ARCH_armeb = "arm"
47KLIBC_ARCH_mipsel = "mips"
48KLIBC_ARCH_x86 = "i386"
49KLIBC_ARCH_x86-64 = "x86_64"
50KLIBC_ARCH_powerpc = "ppc"
51KLIBC_ARCH_powerpc64 = "ppc64"
52THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"