1 DEPENDS = "virtual/kernel perl-native"
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."
7 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/libs/klibc/Stable/klibc-${PV}.tar.bz2 \
8 file://fstype-sane-vfat-and-jffs2-for-1.5.patch;patch=1 \
9 file://modprobe.patch;patch=1 \
10 file://losetup.patch;patch=1 \
11 file://dash_readopt.patch;patch=1 \
12 file://wc.patch;patch=1 \
14 S = "${WORKDIR}/klibc-${PV}"
15 PACKAGE_ARCH = "${MACHINE_ARCH}"
17 KLIBC_ARCH = '${TARGET_ARCH}'
18 KLIBC_ARCH_armeb = 'arm'
19 KLIBC_ARCH_mipsel = 'mips'
21 # the klibc code contains ARM instructions (for ARM), this
22 # could be fixed, but for the moment:
23 ARM_INSTRUCTION_SET = "arm"
25 SRC_URI_append_linux-gnueabi = "file://klibc-config-eabi.patch;patch=1 \
27 SRC_URI_append_linux-uclibcgnueabi = "file://klibc-config-eabi.patch;patch=1 \
30 EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
31 'CROSS_COMPILE=${TARGET_PREFIX}' \
35 ln -sf ${STAGING_KERNEL_DIR} linux