summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-03-12 13:11:14 -0700
committerKhem Raj <raj.khem@gmail.com>2019-03-14 07:24:03 -0700
commit9d8943fd2ec43868a1ca76712fd15dcc144f75ff (patch)
tree68909cd0d6afcafc83f952785e9dc7fea90c164e /meta-initramfs
parent0597e79805b0e7d51c292b3767f3b8d097daf8de (diff)
downloadmeta-openembedded-9d8943fd2ec43868a1ca76712fd15dcc144f75ff.tar.gz
klibc: Upgrade to 2.0.6 release
Drop staging related patches which are not needed anymore Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-Define-in_-structs-for-non-glibc-system-libs.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-in_-structs-for-non-glibc-system-libs.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-always-use-bfd-linker.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-arm-Do-not-set-a-fallback-march-and-mtune.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-arm-Do-not-set-a-fallback-march-and-mtune.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-dash-Specify-format-string-in-fmtstr.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-include-linux-sysinfo.h-directly.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-include-linux-sysinfo.h-directly.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-klibc-add-getrandom-syscall.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/0001-mkfifo-Implement-mkfifo.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/armv4-fix-v4bx.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/armv4-fix-v4bx.patch)4
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-consider-sysroot.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/klibc-config-eabi.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klibc-config-eabi.patch)5
-rw-r--r--meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch (renamed from meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/use-env-for-perl.patch)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.6.bb (renamed from meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.4.bb)2
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-static-utils-do-not-build-shared-binaries.patch213
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klibc-linux-libc-dev.patch29
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/staging.patch151
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.6.bb (renamed from meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb)6
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-utils.inc8
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.6.bb (renamed from meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.4.bb)0
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc.inc13
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc_2.0.6.bb (renamed from meta-initramfs/recipes-devtools/klibc/klibc_2.0.4.bb)2
26 files changed, 10 insertions, 423 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-in_-structs-for-non-glibc-system-libs.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-Define-in_-structs-for-non-glibc-system-libs.patch
index e7a0cce83..e7a0cce83 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-in_-structs-for-non-glibc-system-libs.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-Define-in_-structs-for-non-glibc-system-libs.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch
index eee144dc4..eee144dc4 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-Define-ulocked_-fgets-fread-fwrite-aliases.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
index 181dcfb6d..181dcfb6d 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch
index 1ba05a811..1ba05a811 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-always-use-bfd-linker.patch
index de04d691f..de04d691f 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-always-use-bfd-linker.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-always-use-bfd-linker.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-arm-Do-not-set-a-fallback-march-and-mtune.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-arm-Do-not-set-a-fallback-march-and-mtune.patch
index fcf4f891a..fcf4f891a 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-arm-Do-not-set-a-fallback-march-and-mtune.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-arm-Do-not-set-a-fallback-march-and-mtune.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-dash-Specify-format-string-in-fmtstr.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch
index 46a23987f..46a23987f 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-dash-Specify-format-string-in-fmtstr.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-dash-Specify-format-string-in-fmtstr.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-include-linux-sysinfo.h-directly.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-include-linux-sysinfo.h-directly.patch
index 04c97fc5e..04c97fc5e 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-include-linux-sysinfo.h-directly.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-include-linux-sysinfo.h-directly.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
index 94818e366..94818e366 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-klibc-add-getrandom-syscall.patch
index 0768f6d51..0768f6d51 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-klibc-add-getrandom-syscall.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch
index 3d8d987c4..3d8d987c4 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-mkfifo-Implement-mkfifo.patch
index 3bc081d4e..3bc081d4e 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/0001-mkfifo-Implement-mkfifo.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/armv4-fix-v4bx.patch b/meta-initramfs/recipes-devtools/klibc/files/armv4-fix-v4bx.patch
index e84235306..4a334fa25 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/armv4-fix-v4bx.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/armv4-fix-v4bx.patch
@@ -12,12 +12,10 @@ Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
12 usr/klibc/arch/arm/MCONFIG | 1 + 12 usr/klibc/arch/arm/MCONFIG | 1 +
13 1 file changed, 1 insertion(+) 13 1 file changed, 1 insertion(+)
14 14
15diff --git a/usr/klibc/arch/arm/MCONFIG b/usr/klibc/arch/arm/MCONFIG
16index 53bc1dc..303c6ac 100644
17--- a/usr/klibc/arch/arm/MCONFIG 15--- a/usr/klibc/arch/arm/MCONFIG
18+++ b/usr/klibc/arch/arm/MCONFIG 16+++ b/usr/klibc/arch/arm/MCONFIG
19@@ -29,6 +29,7 @@ else 17@@ -29,6 +29,7 @@ else
20 KLIBCSHAREDFLAGS = -Ttext 0x01800200 18 KLIBCSHAREDFLAGS = -Ttext-segment 0x01800000
21 ifeq ($(CONFIG_AEABI),y) 19 ifeq ($(CONFIG_AEABI),y)
22 KLIBCREQFLAGS += -mabi=aapcs-linux -mno-thumb-interwork 20 KLIBCREQFLAGS += -mabi=aapcs-linux -mno-thumb-interwork
23+KLIBCLDFLAGS += $(FIX_ARMV4_EABI_BX) 21+KLIBCLDFLAGS += $(FIX_ARMV4_EABI_BX)
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-consider-sysroot.patch b/meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch
index 5f47d3f20..5f47d3f20 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-consider-sysroot.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/klcc-consider-sysroot.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch b/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch
index 07703aa53..07703aa53 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klcc-cross-accept-clang-options.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klibc-config-eabi.patch b/meta-initramfs/recipes-devtools/klibc/files/klibc-config-eabi.patch
index f28cd5423..a6998f86d 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klibc-config-eabi.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/klibc-config-eabi.patch
@@ -12,13 +12,12 @@ Signed-off-by: Thomas Kunze <thommycheck@gmx.de>
12 defconfig | 2 +- 12 defconfig | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
14 14
15diff --git a/defconfig b/defconfig
16index 04b98e9..0cb23d0 100644
17--- a/defconfig 15--- a/defconfig
18+++ b/defconfig 16+++ b/defconfig
19@@ -6,4 +6,4 @@ CONFIG_KLIBC_ZLIB=y 17@@ -6,5 +6,5 @@ CONFIG_KLIBC_ZLIB=y
20 CONFIG_REGPARM=y 18 CONFIG_REGPARM=y
21 # ARM options 19 # ARM options
22 # CONFIG_KLIBC_THUMB is not set 20 # CONFIG_KLIBC_THUMB is not set
23-# CONFIG_AEABI is not set 21-# CONFIG_AEABI is not set
24+CONFIG_AEABI=y 22+CONFIG_AEABI=y
23 # CONFIG_DEBUG_INFO is not set
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/use-env-for-perl.patch b/meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch
index eac128cc0..eac128cc0 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/use-env-for-perl.patch
+++ b/meta-initramfs/recipes-devtools/klibc/files/use-env-for-perl.patch
diff --git a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.4.bb b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.6.bb
index ab2afb7f8..4011aa231 100644
--- a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.4.bb
+++ b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.6.bb
@@ -7,8 +7,6 @@ DEPENDS = "klibc"
7PACKAGES = "" 7PACKAGES = ""
8inherit nopackages 8inherit nopackages
9 9
10FILESPATH =. "${FILE_DIRNAME}/klibc-${PV}:"
11
12SRC_URI += "file://use-env-for-perl.patch" 10SRC_URI += "file://use-env-for-perl.patch"
13 11
14# disable task already run in klibc recipe 12# disable task already run in klibc recipe
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-static-utils-do-not-build-shared-binaries.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-static-utils-do-not-build-shared-binaries.patch
deleted file mode 100644
index 2f7cd3556..000000000
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-static-utils-do-not-build-shared-binaries.patch
+++ /dev/null
@@ -1,213 +0,0 @@
1From c034dceae17b7d8d437871afe5eba55a55434222 Mon Sep 17 00:00:00 2001
2From: Andrea Adami <andrea.adami@gmail.com>
3Date: Wed, 10 Oct 2018 00:48:31 +0200
4Subject: [PATCH] klibc-static-utils: do not build shared binaries
5
6We were building some shared utilities and this was leading to linker errors
7for x86 with security flags enabled.
8
9Fix
10 i586-oe-linux-musl-ld.bfd: discarded output section: `.got.plt'
11
12Upstream-Status: Inappropriate [Embedded Specific]
13
14Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
15---
16 usr/dash/Kbuild | 6 +-----
17 usr/kinit/Kbuild | 4 +---
18 usr/kinit/fstype/Kbuild | 4 +---
19 usr/kinit/ipconfig/Kbuild | 4 +---
20 usr/kinit/nfsmount/Kbuild | 4 +---
21 usr/kinit/resume/Kbuild | 5 +----
22 usr/kinit/run-init/Kbuild | 5 +----
23 usr/utils/Kbuild | 7 ++-----
24 8 files changed, 9 insertions(+), 30 deletions(-)
25
26diff --git a/usr/dash/Kbuild b/usr/dash/Kbuild
27index 1a6920a..b3a4e64 100644
28--- a/usr/dash/Kbuild
29+++ b/usr/dash/Kbuild
30@@ -25,12 +25,8 @@ gen-h-files := builtins.h nodes.h syntax.h token.h
31
32 static-y := sh
33
34-# The shared binary
35-shared-y := sh.shared
36-sh.shared-y := $(sh-y)
37-
38 # For cleaning
39-targets := sh sh.g sh.shared sh.shared.g $(gen-o-files)
40+targets := sh sh.g $(gen-o-files)
41
42 # explicit dependency for all generated files
43 $(addprefix $(obj)/, $(sh-y)): $(addprefix $(obj)/, $(gen-h-files))
44diff --git a/usr/kinit/Kbuild b/usr/kinit/Kbuild
45index f7fdccd..8db06ab 100644
46--- a/usr/kinit/Kbuild
47+++ b/usr/kinit/Kbuild
48@@ -18,8 +18,6 @@ kinit-y += fstype/
49 kinit-y += resume/
50
51 static-y := kinit
52-shared-y := kinit.shared
53-kinit.shared-y := $(kinit-y)
54
55 # Additional include paths files
56 KLIBCCFLAGS += -I$(srctree)/$(src)/fstype \
57@@ -29,7 +27,7 @@ KLIBCCFLAGS += -I$(srctree)/$(src)/fstype \
58 -I$(srctree)/$(src)/run-init
59
60 # Cleaning
61-targets += kinit kinit.g kinit.shared kinit.shared.g
62+targets += kinit kinit.g
63 subdir- := fstype ipconfig nfsmount resume run-init
64
65
66diff --git a/usr/kinit/fstype/Kbuild b/usr/kinit/fstype/Kbuild
67index 367611d..8d453ea 100644
68--- a/usr/kinit/fstype/Kbuild
69+++ b/usr/kinit/fstype/Kbuild
70@@ -3,7 +3,6 @@
71 #
72
73 static-y := static/fstype
74-shared-y := shared/fstype
75
76 # common .o files
77 objs := main.o fstype.o
78@@ -16,8 +15,7 @@ lib-y := $(objs)
79
80 # .o files used to built executables
81 static/fstype-y := $(objs)
82-shared/fstype-y := $(objs)
83
84 # Cleaning
85-clean-dirs := static shared
86+clean-dirs := static
87
88diff --git a/usr/kinit/ipconfig/Kbuild b/usr/kinit/ipconfig/Kbuild
89index eb1d472..ef87e7e 100644
90--- a/usr/kinit/ipconfig/Kbuild
91+++ b/usr/kinit/ipconfig/Kbuild
92@@ -3,7 +3,6 @@
93 #
94
95 static-y := static/ipconfig
96-shared-y := shared/ipconfig
97
98 # common .o files
99 objs := main.o netdev.o packet.o
100@@ -22,8 +21,7 @@ lib-y := $(objs)
101
102 # .o files used to built executables
103 static/ipconfig-y := $(objs)
104-shared/ipconfig-y := $(objs)
105
106 # Cleaning
107-clean-dirs := static shared
108+clean-dirs := static
109
110diff --git a/usr/kinit/nfsmount/Kbuild b/usr/kinit/nfsmount/Kbuild
111index ba31708..01bedce 100644
112--- a/usr/kinit/nfsmount/Kbuild
113+++ b/usr/kinit/nfsmount/Kbuild
114@@ -4,7 +4,6 @@
115
116 static-y := static/nfsmount
117 #FIXME - build is broken static-y := dummypmap
118-shared-y := shared/nfsmount
119
120 objs := main.o mount.o portmap.o dummypmap.o sunrpc.o
121
122@@ -13,7 +12,6 @@ lib-y := $(objs)
123
124 # .o files used for executables
125 static/nfsmount-y := $(objs)
126-shared/nfsmount-y := $(objs)
127
128 # dummypmap uses a single .o file (rename src file?)
129 dummypmap-y := dummypmap_test.o
130@@ -21,5 +19,5 @@ dummypmap-y := dummypmap_test.o
131 # TODO - do we want a stripped version
132 # TODO - do we want the static.g + shared.g directories?
133
134-clean-dirs := static shared
135+clean-dirs := static
136
137diff --git a/usr/kinit/resume/Kbuild b/usr/kinit/resume/Kbuild
138index c1342e1..15b9590 100644
139--- a/usr/kinit/resume/Kbuild
140+++ b/usr/kinit/resume/Kbuild
141@@ -3,7 +3,6 @@
142 #
143
144 static-y := static/resume
145-shared-y := shared/resume
146
147 # common .o files
148 objs := resume.o resumelib.o
149@@ -20,9 +19,7 @@ KLIBCCFLAGS += -I$(srctree)/$(src)/..
150 # .o files used to built executables
151 static/resume-y := $(objs)
152 static/resume-lib := ../lib.a
153-shared/resume-y := $(objs)
154-shared/resume-lib := ../lib.a
155
156 # Cleaning
157-clean-dirs := static shared
158+clean-dirs := static
159
160diff --git a/usr/kinit/run-init/Kbuild b/usr/kinit/run-init/Kbuild
161index c153b0a..a1ea834 100644
162--- a/usr/kinit/run-init/Kbuild
163+++ b/usr/kinit/run-init/Kbuild
164@@ -3,7 +3,6 @@
165 #
166
167 static-y := static/run-init
168-shared-y := shared/run-init
169
170 # common .o files
171 objs := run-init.o runinitlib.o
172@@ -24,9 +23,7 @@ KLIBCCFLAGS += -I$(srctree)/$(src)/..
173 # .o files used to built executables
174 static/run-init-y := $(objs)
175 static/run-init-lib := ../lib.a
176-shared/run-init-y := $(objs)
177-shared/run-init-lib := ../lib.a
178
179 # Cleaning
180-clean-dirs := static shared
181+clean-dirs := static
182
183diff --git a/usr/utils/Kbuild b/usr/utils/Kbuild
184index 67d9486..1573363 100644
185--- a/usr/utils/Kbuild
186+++ b/usr/utils/Kbuild
187@@ -7,7 +7,6 @@ progs += true false sleep ln mv nuke minips cat ls losetup
188 progs += uname halt kill readlink cpio sync dmesg
189
190 static-y := $(addprefix static/, $(progs))
191-shared-y := $(addprefix shared/, $(progs))
192
193 # The binary is placed in a subdir, so we need to tell kbuild this
194 static/chroot-y := chroot.o
195@@ -62,13 +61,11 @@ static/losetup-y := losetup.o
196 shared/losetup-y := losetup.o
197
198 # Additionally linked targets
199-always := static/reboot static/poweroff shared/reboot shared/poweroff
200+always := static/reboot static/poweroff
201
202 $(obj)/static/reboot $(obj)/static/poweroff: $(obj)/static/halt
203 $(call cmd,ln)
204-$(obj)/shared/reboot $(obj)/shared/poweroff: $(obj)/shared/halt
205- $(call cmd,ln)
206
207 # Clean deletes the static and shared dir
208-clean-dirs := static shared
209+clean-dirs := static
210
211--
2122.7.4
213
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klibc-linux-libc-dev.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klibc-linux-libc-dev.patch
deleted file mode 100644
index a5563b740..000000000
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/klibc-linux-libc-dev.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From 1be2bc41f915922102a3ba671b54c2df6f0052e6 Mon Sep 17 00:00:00 2001
2From: Ben Hutchings <ben@decadent.org.uk>
3Date: Sun, 14 Mar 2010 18:41:56 +0000
4Subject: [PATCH] klibc_1.5.26: now build against linux-libc-headers
5
6commit 43adf69062254fb4f8d4d11fb5fe36a60ae25d5a
7
8 Taken from debian "Fix klibc Debian specific build trouble"
9 Adapted for klibc_2.0.2
10
11---
12 scripts/Kbuild.install | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15diff --git a/scripts/Kbuild.install b/scripts/Kbuild.install
16index 8af5697..d32a8a5 100644
17--- a/scripts/Kbuild.install
18+++ b/scripts/Kbuild.install
19@@ -95,7 +95,9 @@ header:
20 $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
21 $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
22 $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
23- $(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
24+ $(Q)for x in ../../../include/asm ../../../include/asm-generic ../../../include/linux ../../../include/mtd; do \
25+ ln -sf $${x} $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \
26+ done
27 $(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
28 $(Q)chmod -R a+rX,go-w $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
29 $(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/staging.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/staging.patch
deleted file mode 100644
index 5c7a6625b..000000000
--- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/staging.patch
+++ /dev/null
@@ -1,151 +0,0 @@
1From 1892079b827cf8f8316305b6d6e0985db82441a2 Mon Sep 17 00:00:00 2001
2From: Thomas Kunze <thommycheck@gmx.de>
3Date: Sat, 6 Aug 2011 05:30:14 +0000
4Subject: [PATCH] klibc: initial commit of version 1.5.24
5
6Patch was imported from the OpenEmbedded git server
7(git://git.openembedded.org/openembedded)
8as of commit id eefb99a313bbcc8f34c8b32bf0c5aa2dd2580735
9Signed-off-by: Thomas Kunze <thommycheck@gmx.de>
10
11Minor edits following upstream changes
12Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
13
14---
15 scripts/Kbuild.install | 4 ----
16 usr/dash/Kbuild | 2 --
17 usr/gzip/Kbuild | 2 --
18 usr/kinit/Kbuild | 2 --
19 usr/kinit/fstype/Kbuild | 2 --
20 usr/kinit/ipconfig/Kbuild | 2 --
21 usr/kinit/nfsmount/Kbuild | 2 --
22 usr/kinit/resume/Kbuild | 2 --
23 usr/kinit/run-init/Kbuild | 2 --
24 usr/klibc/Kbuild | 2 --
25 usr/utils/Kbuild | 2 --
26 11 files changed, 24 deletions(-)
27
28diff --git a/scripts/Kbuild.install b/scripts/Kbuild.install
29index d32a8a5..fda699d 100644
30--- a/scripts/Kbuild.install
31+++ b/scripts/Kbuild.install
32@@ -88,19 +88,15 @@ else
33 header:
34 $(Q)echo " INSTALL headers + man pages to $(INSTALLROOT)$(INSTALLDIR)"
35 $(Q)mkdir -p $(INSTALLROOT)$(bindir)
36- $(Q)mkdir -p $(INSTALLROOT)$(mandir)/man1
37- $(Q)mkdir -p $(INSTALLROOT)$(SHLIBDIR)
38 $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)
39 $(Q)-rm -rf $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
40 $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
41 $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
42- $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
43 $(Q)for x in ../../../include/asm ../../../include/asm-generic ../../../include/linux ../../../include/mtd; do \
44 ln -sf $${x} $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \
45 done
46 $(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
47 $(Q)chmod -R a+rX,go-w $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
48- $(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1
49 $(Q)$(install-bin) $(objtree)/klcc/$(KCROSS)klcc $(INSTALLROOT)$(bindir)
50
51 footer: header
52diff --git a/usr/dash/Kbuild b/usr/dash/Kbuild
53index 3a98c1f..1a6920a 100644
54--- a/usr/dash/Kbuild
55+++ b/usr/dash/Kbuild
56@@ -92,5 +92,3 @@ $(obj)/syntax.c: $(obj)/mksyntax
57 $(obj)/syntax.h: $(obj)/syntax.c
58 $(Q):
59
60-# Targets to install
61-install-y := sh.shared
62diff --git a/usr/gzip/Kbuild b/usr/gzip/Kbuild
63index 9bbf0a4..c497d02 100644
64--- a/usr/gzip/Kbuild
65+++ b/usr/gzip/Kbuild
66@@ -21,5 +21,3 @@ $(obj)/gunzip $(obj)/zcat: $(obj)/gzip
67 # Cleaning
68 targets := gzip gzip.g gunzip zcat
69
70-# Targets to install
71-install-y := gzip gunzip zcat
72diff --git a/usr/kinit/Kbuild b/usr/kinit/Kbuild
73index 5320127..f7fdccd 100644
74--- a/usr/kinit/Kbuild
75+++ b/usr/kinit/Kbuild
76@@ -33,5 +33,3 @@ targets += kinit kinit.g kinit.shared kinit.shared.g
77 subdir- := fstype ipconfig nfsmount resume run-init
78
79
80-# install binary
81-install-y := kinit kinit.shared
82diff --git a/usr/kinit/fstype/Kbuild b/usr/kinit/fstype/Kbuild
83index 9b20db1..367611d 100644
84--- a/usr/kinit/fstype/Kbuild
85+++ b/usr/kinit/fstype/Kbuild
86@@ -21,5 +21,3 @@ shared/fstype-y := $(objs)
87 # Cleaning
88 clean-dirs := static shared
89
90-# install binary
91-install-y := $(shared-y)
92diff --git a/usr/kinit/ipconfig/Kbuild b/usr/kinit/ipconfig/Kbuild
93index 7f8d181..eb1d472 100644
94--- a/usr/kinit/ipconfig/Kbuild
95+++ b/usr/kinit/ipconfig/Kbuild
96@@ -27,5 +27,3 @@ shared/ipconfig-y := $(objs)
97 # Cleaning
98 clean-dirs := static shared
99
100-# install binary
101-install-y := $(shared-y)
102diff --git a/usr/kinit/nfsmount/Kbuild b/usr/kinit/nfsmount/Kbuild
103index 461e6f3..ba31708 100644
104--- a/usr/kinit/nfsmount/Kbuild
105+++ b/usr/kinit/nfsmount/Kbuild
106@@ -23,5 +23,3 @@ dummypmap-y := dummypmap_test.o
107
108 clean-dirs := static shared
109
110-# Install binary
111-install-y := $(shared-y)
112diff --git a/usr/kinit/resume/Kbuild b/usr/kinit/resume/Kbuild
113index 034195d..c1342e1 100644
114--- a/usr/kinit/resume/Kbuild
115+++ b/usr/kinit/resume/Kbuild
116@@ -26,5 +26,3 @@ shared/resume-lib := ../lib.a
117 # Cleaning
118 clean-dirs := static shared
119
120-# install binary
121-install-y := $(shared-y)
122diff --git a/usr/kinit/run-init/Kbuild b/usr/kinit/run-init/Kbuild
123index f7832b7..c153b0a 100644
124--- a/usr/kinit/run-init/Kbuild
125+++ b/usr/kinit/run-init/Kbuild
126@@ -30,5 +30,3 @@ shared/run-init-lib := ../lib.a
127 # Cleaning
128 clean-dirs := static shared
129
130-# install binary
131-install-y := $(shared-y)
132diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
133index eba6add..98caf2e 100644
134--- a/usr/klibc/Kbuild
135+++ b/usr/klibc/Kbuild
136@@ -185,5 +185,3 @@ install-rule:
137 $(INSTALLROOT)$(INSTALLDIR)/$(KLIBCCROSS)lib))
138 $(Q)$(install-lib) $(obj)/klibc-$(SOLIBHASH).so \
139 $(INSTALLROOT)$(INSTALLDIR)/$(KLIBCCROSS)lib
140- $(Q)$(install-lib) $(obj)/klibc-$(SOLIBHASH).so \
141- $(INSTALLROOT)$(SHLIBDIR)
142diff --git a/usr/utils/Kbuild b/usr/utils/Kbuild
143index 05aa794..67d9486 100644
144--- a/usr/utils/Kbuild
145+++ b/usr/utils/Kbuild
146@@ -72,5 +72,3 @@ $(obj)/shared/reboot $(obj)/shared/poweroff: $(obj)/shared/halt
147 # Clean deletes the static and shared dir
148 clean-dirs := static shared
149
150-# install only install the shared binaries
151-install-y := $(shared-y) shared/reboot shared/poweroff
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb b/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.6.bb
index 16778630c..c835fd647 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.6.bb
@@ -10,9 +10,3 @@ KLIBC_UTILS_PKGNAME = "klibc-static-utils"
10 10
11require klibc-utils.inc 11require klibc-utils.inc
12require klibc.inc 12require klibc.inc
13
14SRC_URI += "file://0001-klibc-static-utils-do-not-build-shared-binaries.patch"
15
16# avoid textrel if linking with -pie
17SECURITY_CFLAGS = ""
18SECURITY_LDFLAGS = ""
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc b/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc
index 2aac9e6eb..00cb86d3e 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc
@@ -2,11 +2,11 @@ do_install() {
2 install -d ${D}${base_bindir} 2 install -d ${D}${base_bindir}
3 install -d ${D}${base_sbindir} 3 install -d ${D}${base_sbindir}
4 if [ "${KLIBC_UTILS_VARIANT}" = "shared" ]; then 4 if [ "${KLIBC_UTILS_VARIANT}" = "shared" ]; then
5 install -m 755 usr/kinit/kinit.shared ${D}${base_bindir}/kinit.shared 5 install -m 755 usr/kinit/shared/kinit ${D}${base_bindir}/kinit.shared
6 install -m 755 usr/dash/sh.shared ${D}${base_bindir}/sh.shared 6 install -m 755 usr/dash/shared/sh ${D}${base_bindir}/sh.shared
7 else 7 else
8 install -m 755 usr/dash/sh ${D}${base_bindir}/sh 8 install -m 755 usr/dash/static/sh ${D}${base_bindir}/sh
9 install -m 755 usr/kinit/kinit ${D}${base_bindir}/kinit 9 install -m 755 usr/kinit/static/kinit ${D}${base_bindir}/kinit
10 install -m 755 usr/gzip/gzip ${D}${base_bindir} 10 install -m 755 usr/gzip/gzip ${D}${base_bindir}
11 ln -s gzip ${D}${base_bindir}/gunzip 11 ln -s gzip ${D}${base_bindir}/gunzip
12 ln -s gzip ${D}${base_bindir}/zcat 12 ln -s gzip ${D}${base_bindir}/zcat
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.4.bb b/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.6.bb
index 06e71cb7b..06e71cb7b 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.4.bb
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.6.bb
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index ec52e9734..580544867 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -5,12 +5,10 @@ SECTION = "libs"
5LICENSE = "BSD-3-Clause & GPL-2.0 & MIT & Zlib" 5LICENSE = "BSD-3-Clause & GPL-2.0 & MIT & Zlib"
6LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8b" 6LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8b"
7DEPENDS = "linux-libc-headers perl-native" 7DEPENDS = "linux-libc-headers perl-native"
8SRCREV = "4d19974d7020488f63651244e1f9f51727c3f66c" 8SRCREV = "22b36d1ae34416bc48869619cbb0cccb2070f48f"
9 9
10SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \ 10SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \
11 ${ARMPATCHES} \ 11 ${ARMPATCHES} \
12 file://klibc-linux-libc-dev.patch \
13 file://staging.patch \
14 file://klcc-consider-sysroot.patch \ 12 file://klcc-consider-sysroot.patch \
15 file://klcc-cross-accept-clang-options.patch \ 13 file://klcc-cross-accept-clang-options.patch \
16 file://0001-dash-Specify-format-string-in-fmtstr.patch \ 14 file://0001-dash-Specify-format-string-in-fmtstr.patch \
@@ -48,8 +46,6 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
48 'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \ 46 'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \
49 V=1 \ 47 V=1 \
50 " 48 "
51EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack' \
52 'EXTRA_KLIBCLDFLAGS=${SECURITY_LDFLAGS} -z noexecstack'"
53 49
54export FIX_ARMV4_EABI_BX = "${FIX_V4BX}" 50export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
55KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}" 51KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}"
@@ -76,10 +72,3 @@ KLIBC_ARCH_x86-64 = "x86_64"
76KLIBC_ARCH_powerpc = "ppc" 72KLIBC_ARCH_powerpc = "ppc"
77KLIBC_ARCH_powerpc64 = "ppc64" 73KLIBC_ARCH_powerpc64 = "ppc64"
78THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})" 74THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
79
80GCCPIE ?= ""
81SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
82SECURITY_LDFLAGS_mips = ""
83SECURITY_LDFLAGS_mipsel = ""
84SECURITY_LDFLAGS_mips64 = ""
85SECURITY_LDFLAGS_mips64el = ""
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc_2.0.4.bb b/meta-initramfs/recipes-devtools/klibc/klibc_2.0.6.bb
index bc80f382f..7df0b0a3d 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc_2.0.4.bb
+++ b/meta-initramfs/recipes-devtools/klibc/klibc_2.0.6.bb
@@ -10,6 +10,8 @@ do_install() {
10 install -d ${D}${libdir} 10 install -d ${D}${libdir}
11 install -m 755 usr/klibc/klibc-*.so ${D}${libdir} 11 install -m 755 usr/klibc/klibc-*.so ${D}${libdir}
12 (cd ${D}${libdir}; ln -s klibc-*.so klibc.so) 12 (cd ${D}${libdir}; ln -s klibc-*.so klibc.so)
13 rm -rf ${D}${exec_prefix}/man
14 rm -rf ${D}${libdir}/klibc/bin
13} 15}
14 16
15PACKAGES = "libklibc libklibc-staticdev libklibc-dev" 17PACKAGES = "libklibc libklibc-staticdev libklibc-dev"