mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
klibc_2.0.2: refactor recipe to respect exec_prefix
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
This commit is contained in:
parent
72e23c1229
commit
123c38942d
|
|
@ -14,7 +14,7 @@ Index: klibc-2.0~rc2/scripts/Kbuild.install
|
|||
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
|
||||
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
|
||||
- $(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
|
||||
+ $(Q)for x in $(KLIBCKERNELSRC)/include/asm $(KLIBCKERNELSRC)/include/asm* $(KLIBCKERNELSRC)/include/linux $(KLIBCKERNELSRC)/include/mtd; do \
|
||||
+ $(Q)for x in ../../../include/asm ../../../include/asm-generic ../../../include/linux ../../../include/mtd; do \
|
||||
+ ln -sf $${x} $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \
|
||||
+ done
|
||||
$(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
Index: klibc-1.5.24/Makefile
|
||||
===================================================================
|
||||
--- a/Makefile 2011-07-27 15:50:53.000000000 +0200
|
||||
+++ b/Makefile 2011-08-01 00:47:56.000000000 +0200
|
||||
@@ -39,7 +39,7 @@
|
||||
export PERL := perl
|
||||
|
||||
# Location for installation
|
||||
-export prefix = /usr
|
||||
+export prefix = $(INST)
|
||||
export bindir = $(prefix)/bin
|
||||
export libdir = $(prefix)/lib
|
||||
export mandir = $(prefix)/man
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ Index: klibc-1.5.24/scripts/Kbuild.install
|
|||
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
|
||||
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
|
||||
- $(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
|
||||
$(Q)for x in $(KLIBCKERNELSRC)/include/asm $(KLIBCKERNELSRC)/include/asm* $(KLIBCKERNELSRC)/include/linux $(KLIBCKERNELSRC)/include/mtd; do \
|
||||
$(Q)for x in ../../../include/asm ../../../include/asm-generic ../../../include/linux ../../../include/mtd; do \
|
||||
ln -sf $${x} $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/ || exit; \
|
||||
done
|
||||
@@ -103,7 +100,6 @@
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ SRC_URI_append_linux-uclibceabi = " file://klibc-config-eabi.patch \
|
|||
"
|
||||
|
||||
SRC_URI += "file://klibc-linux-libc-dev.patch \
|
||||
file://prefix.patch \
|
||||
file://staging.patch \
|
||||
"
|
||||
|
||||
|
|
@ -46,6 +45,9 @@ S = "${WORKDIR}/git"
|
|||
EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
|
||||
'CROSS_COMPILE=${TARGET_PREFIX}' \
|
||||
'KLIBCKERNELSRC=${STAGING_DIR_TARGET}${exec_prefix}' \
|
||||
'prefix=${exec_prefix}' \
|
||||
'INSTALLROOT=${D}' \
|
||||
'SHLIBDIR=${libdir}' \
|
||||
"
|
||||
|
||||
do_configure () {
|
||||
|
|
|
|||
|
|
@ -1,27 +1,25 @@
|
|||
PR = "${INC_PR}.0"
|
||||
|
||||
export INST = "${D}"
|
||||
|
||||
do_install() {
|
||||
oe_runmake install
|
||||
|
||||
# the crosscompiler is packaged by klcc-cross
|
||||
# remove klcc
|
||||
rm ${D}${base_bindir}/klcc
|
||||
rm ${D}${bindir}/klcc
|
||||
# remove now empty dir
|
||||
rmdir ${D}${base_bindir}
|
||||
rmdir ${D}${bindir}
|
||||
|
||||
install -d ${D}${base_libdir}
|
||||
install -m 755 usr/klibc/klibc-*.so ${D}${base_libdir}
|
||||
(cd ${D}${base_libdir}; ln -s klibc-*.so klibc.so)
|
||||
install -d ${D}${libdir}
|
||||
install -m 755 usr/klibc/klibc-*.so ${D}${libdir}
|
||||
(cd ${D}${libdir}; ln -s klibc-*.so klibc.so)
|
||||
}
|
||||
|
||||
PACKAGES = "libklibc libklibc-staticdev libklibc-dev"
|
||||
FILES_libklibc = "${base_libdir}/klibc-*.so"
|
||||
FILES_libklibc-staticdev = "${base_libdir}/klibc/lib/libc.a"
|
||||
FILES_libklibc-dev = "${base_libdir}/klibc.so \
|
||||
${base_libdir}/klibc/lib/* \
|
||||
${base_libdir}/klibc/include/* \
|
||||
FILES_libklibc = "${libdir}/klibc-*.so"
|
||||
FILES_libklibc-staticdev = "${libdir}/klibc/lib/libc.a"
|
||||
FILES_libklibc-dev = "${libdir}/klibc.so \
|
||||
${libdir}/klibc/lib/* \
|
||||
${libdir}/klibc/include/* \
|
||||
"
|
||||
require klibc.inc
|
||||
SUMMARY = "klibc, a small C library for use with initramfs"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user