diff options
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc.inc')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 48 |
1 files changed, 48 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..1b1f7c626 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
@@ -0,0 +1,48 @@ | |||
1 | DEPENDS = "virtual/kernel perl-native" | ||
2 | SECTION = "libs" | ||
3 | DESCRIPTION = "klibc is intended to be a minimalistic libc subset for \ | ||
4 | use with initramfs. It is deliberately written for small size, \ | ||
5 | minimal entaglement, and portability, not speed." | ||
6 | LICENSE = "BSD-ADV" | ||
7 | LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8b" | ||
8 | |||
9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
10 | |||
11 | # Prevents do_package failures with: | ||
12 | # debugsources.list: No such file or directory: | ||
13 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
14 | |||
15 | INC_PR = "r0" | ||
16 | |||
17 | KLIBC_ARCH = '${TARGET_ARCH}' | ||
18 | KLIBC_ARCH_armeb = 'arm' | ||
19 | KLIBC_ARCH_mipsel = 'mips' | ||
20 | KLIBC_ARCH_x86 = 'i386' | ||
21 | KLIBC_ARCH_i486 = 'i386' | ||
22 | KLIBC_ARCH_i586 = 'i386' | ||
23 | KLIBC_ARCH_i686 = 'i386' | ||
24 | KLIBC_ARCH_pentium = 'i386' | ||
25 | |||
26 | KLIBC_FETCHDIR = "1.5" | ||
27 | SRC_URI = "${KERNELORG_MIRROR}/linux/libs/klibc/${KLIBC_FETCHDIR}/klibc-${PV}.tar.bz2" | ||
28 | |||
29 | SRC_URI_append_linux-gnueabi = " file://klibc-config-eabi.patch" | ||
30 | SRC_URI_append_linux-uclibceabi = " file://klibc-config-eabi.patch" | ||
31 | |||
32 | SRC_URI += "file://fstype-sane-vfat-and-jffs2-for-1.5.patch \ | ||
33 | file://modprobe.patch \ | ||
34 | file://dash_readopt.patch \ | ||
35 | file://wc.patch \ | ||
36 | file://staging.patch \ | ||
37 | " | ||
38 | |||
39 | S = "${WORKDIR}/klibc-${PV}" | ||
40 | |||
41 | EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ | ||
42 | 'CROSS_COMPILE=${TARGET_PREFIX}' \ | ||
43 | 'KLIBCKERNELSRC=${STAGING_KERNEL_DIR}' \ | ||
44 | " | ||
45 | |||
46 | do_configure () { | ||
47 | ln -sf ${STAGING_KERNEL_DIR} linux | ||
48 | } | ||