summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc/klibc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc.inc')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index f0b20bc7f..3d25e96cd 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -21,9 +21,10 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \
21 file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \ 21 file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \
22 file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \ 22 file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \
23 file://0001-arm-Do-not-set-a-fallback-march-and-mtune.patch \ 23 file://0001-arm-Do-not-set-a-fallback-march-and-mtune.patch \
24 file://0001-klibc_2.0.4-add-kexec_file_load-syscall.patch \ 24 file://0001-klibc_2.0.4-add-kexec_file_load-syscall.patch \
25 file://0001-klibc-add-getrandom-syscall.patch \ 25 file://0001-klibc-add-getrandom-syscall.patch \
26" 26 file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \
27 "
27 28
28ARMPATCHES ?= "" 29ARMPATCHES ?= ""
29 30
@@ -31,7 +32,6 @@ ARMPATCHES_arm = "file://klibc-config-eabi.patch \
31 file://armv4-fix-v4bx.patch \ 32 file://armv4-fix-v4bx.patch \
32 " 33 "
33 34
34
35S = "${WORKDIR}/git" 35S = "${WORKDIR}/git"
36 36
37PARALLEL_MAKE = "" 37PARALLEL_MAKE = ""
@@ -44,9 +44,10 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
44 'INSTALLDIR=${libdir}/klibc' \ 44 'INSTALLDIR=${libdir}/klibc' \
45 'SHLIBDIR=${libdir}' \ 45 'SHLIBDIR=${libdir}' \
46 '${KLIBCTHUMB}' \ 46 '${KLIBCTHUMB}' \
47 'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \ 47 'KLIBCOPTFLAGS=${TUNE_CCARGS}' \
48 V=1 \ 48 V=1 \
49 " 49 "
50EXTRA_OEMAKE += 'EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" EXTRA_KLIBCLDFLAGS="-z noexecstack"'
50 51
51export FIX_ARMV4_EABI_BX = "${FIX_V4BX}" 52export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
52KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}" 53KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}"