openmoko-session2: add RDEPENDS openmoko-panel-memory and oe-stylize
[vuplus_openembedded] / packages / klibc / klibc-common.inc
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            "
10 S = "${WORKDIR}/klibc-${PV}"
11 PACKAGE_ARCH = "${MACHINE_ARCH}"
12
13 KLIBC_ARCH = '${TARGET_ARCH}'
14 KLIBC_ARCH_armeb = 'arm'
15 KLIBC_ARCH_mipsel = 'mips'
16
17 # the klibc code contains ARM instructions (for ARM), this
18 # could be fixed, but for the moment:
19 ARM_INSTRUCTION_SET = "arm"
20
21 SRC_URI_append_linux-gnueabi = "file://klibc-config-eabi.patch;patch=1 \
22                                 "
23 SRC_URI_append_linux-uclibcgnueabi = "file://klibc-config-eabi.patch;patch=1 \
24                                       "
25
26 EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
27                 'CROSS_COMPILE=${TARGET_PREFIX}' \
28                 "
29
30 do_configure () {
31         ln -sf ${STAGING_KERNEL_DIR} linux
32 }
33