merge of '07a342693675fe2b1daacf0eb62302579d9fade3'
[org.openembedded.dev.git] / packages / klibc / klibc-common.inc
blob87fb6498f4cef78718664c86cdfeb9ba9dfa9f39
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 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 \
13            "
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 \
26                                 "
27 SRC_URI_append_linux-uclibcgnueabi = "file://klibc-config-eabi.patch;patch=1 \
28                                       "
30 EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
31                 'CROSS_COMPILE=${TARGET_PREFIX}' \
32                 "
34 do_configure () {
35         ln -sf ${STAGING_KERNEL_DIR} linux