mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-19 00:14:53 +00:00
* This change is only aesthetic (unlike indentation in Python tasks). * Some recipes were using tabs. * Some were using 8 spaces. * Some were using mix or different number of spaces. * Make them consistently use 4 spaces everywhere. * Yocto styleguide advises to use tabs (but the only reason to keep tabs is the need to update a lot of recipes). Lately this advice was also merged into the styleguide on the OE wiki. * Using 4 spaces in both types of tasks is better because it's less error prone when someone is not sure if e.g. do_generate_toolchain_file() is Python or shell task and also allows to highlight every tab used in .bb, .inc, .bbappend, .bbclass as potentially bad (shouldn't be used for indenting of multiline variable assignments and cannot be used for Python tasks). * Don't indent closing quote on multiline variables we're quite inconsistent wheater it's first character on line under opening quote or under first non-whitespace character in previous line. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net>
53 lines
1.6 KiB
PHP
53 lines
1.6 KiB
PHP
DEPENDS = "linux-libc-headers perl-native"
|
|
SECTION = "libs"
|
|
DESCRIPTION = "klibc is intended to be a minimalistic libc subset for \
|
|
use with initramfs. It is deliberately written for small size, \
|
|
minimal entaglement, and portability, not speed."
|
|
LICENSE = "BSD-3-Clause & GPL-2.0 & MIT & Zlib"
|
|
LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8b"
|
|
|
|
# Prevents do_package failures with:
|
|
# debugsources.list: No such file or directory:
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|
|
|
|
INC_PR = "r1"
|
|
|
|
KLIBC_ARCH = '${TARGET_ARCH}'
|
|
KLIBC_ARCH_armeb = 'arm'
|
|
KLIBC_ARCH_mipsel = 'mips'
|
|
KLIBC_ARCH_x86 = 'i386'
|
|
KLIBC_ARCH_i486 = 'i386'
|
|
KLIBC_ARCH_i586 = 'i386'
|
|
KLIBC_ARCH_i686 = 'i386'
|
|
KLIBC_ARCH_pentium = 'i386'
|
|
|
|
export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
|
|
|
|
SRCREV = "f05ff116bb9edbbb81d82fa47b78e630ce878470"
|
|
SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git;protocol=git"
|
|
|
|
SRC_URI_append_linux-gnueabi = " file://klibc-config-eabi.patch \
|
|
file://armv4-fix-v4bx.patch \
|
|
"
|
|
SRC_URI_append_linux-uclibceabi = " file://klibc-config-eabi.patch \
|
|
file://armv4-fix-v4bx.patch \
|
|
"
|
|
|
|
SRC_URI += "file://klibc-linux-libc-dev.patch \
|
|
file://prefix.patch \
|
|
file://staging.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
|
|
'CROSS_COMPILE=${TARGET_PREFIX}' \
|
|
'KLIBCKERNELSRC=${STAGING_DIR_TARGET}${exec_prefix}' \
|
|
"
|
|
|
|
do_configure () {
|
|
ln -sf "${STAGING_DIR_TARGET}${exec_prefix}" linux
|
|
}
|
|
|
|
THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
|