diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2013-08-30 01:11:30 +0200 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-09-03 14:53:44 +0100 |
commit | 61398c6959835bb63d4da47cf9c1858be3489614 (patch) | |
tree | 74a5c68757cd1b14e4b98c9bbbb172467418f462 /meta-initramfs/recipes-devtools/klibc | |
parent | 123c38942d708a383b3e0d308d2dd771cedcd0f8 (diff) | |
download | meta-openembedded-61398c6959835bb63d4da47cf9c1858be3489614.tar.gz |
klcc-cross_2.0.2: refactor recipe to respect exec_prefix
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.2.bb | 11 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-2.0.2/klcc_prefix.patch | 24 |
2 files changed, 4 insertions, 31 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.2.bb b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.2.bb index b30d16551..17ae0c10b 100644 --- a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.2.bb +++ b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.2.bb | |||
@@ -3,10 +3,7 @@ PR = "${INC_PR}.0" | |||
3 | require klibc.inc | 3 | require klibc.inc |
4 | SUMMARY = "The klcc crosscompiler for klibc" | 4 | SUMMARY = "The klcc crosscompiler for klibc" |
5 | 5 | ||
6 | export KLCC_INST = "${STAGING_DIR_TARGET}/lib/klibc" | 6 | SRC_URI += "file://use-env-for-perl.patch" |
7 | |||
8 | SRC_URI += "file://klcc_prefix.patch \ | ||
9 | file://use-env-for-perl.patch" | ||
10 | 7 | ||
11 | DEPENDS = "klibc" | 8 | DEPENDS = "klibc" |
12 | 9 | ||
@@ -19,10 +16,10 @@ do_configure () { | |||
19 | } | 16 | } |
20 | 17 | ||
21 | do_compile() { | 18 | do_compile() { |
22 | oe_runmake klcc | 19 | oe_runmake 'INSTALLDIR=${STAGING_DIR_TARGET}${target_libdir}/klibc' klcc |
23 | } | 20 | } |
24 | 21 | ||
25 | do_install() { | 22 | do_install() { |
26 | install -d ${D}${base_bindir} | 23 | install -d ${D}${bindir} |
27 | install -m 0755 klcc/klcc ${D}${base_bindir}/${TARGET_PREFIX}klcc | 24 | install -m 0755 klcc/klcc ${D}${bindir}/${TARGET_PREFIX}klcc |
28 | } | 25 | } |
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.2/klcc_prefix.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.2/klcc_prefix.patch deleted file mode 100644 index a4a0026e4..000000000 --- a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.2/klcc_prefix.patch +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | Patch was imported from the OpenEmbedded git server | ||
2 | (git://git.openembedded.org/openembedded) | ||
3 | as of commit id a29bf15b9c9c0d15f96c254b2ed830e104ae3436 | ||
4 | Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | ||
5 | |||
6 | Index: klibc-1.5.19/klcc/Kbuild | ||
7 | =================================================================== | ||
8 | --- --- klibc-1.5.19.orig/klcc/Kbuild 2010-07-07 14:07:48.000000000 +0200 | ||
9 | +++ --- klibc-1.5.19./klcc/Kbuild 2010-08-18 23:39:23.000000000 +0200 | ||
10 | @@ -22,10 +22,10 @@ | ||
11 | $(Q)echo 'EMAIN=$(KLIBCEMAIN)' >> $@ | ||
12 | $(Q)echo 'BITSIZE=$(KLIBCBITSIZE)' >> $@ | ||
13 | $(Q)echo 'VERSION=$(shell cat $(srctree)/usr/klibc/version)' >> $@ | ||
14 | - $(Q)echo 'prefix=$(INSTALLDIR)' >> $@ | ||
15 | - $(Q)echo 'bindir=$(INSTALLDIR)/$(KCROSS)bin' >> $@ | ||
16 | - $(Q)echo 'libdir=$(INSTALLDIR)/$(KCROSS)lib' >> $@ | ||
17 | - $(Q)echo 'includedir=$(INSTALLDIR)/$(KCROSS)include' >> $@ | ||
18 | + $(Q)echo 'prefix=$(KLCC_INST)' >> $@ | ||
19 | + $(Q)echo 'bindir=$(KLCC_INST)/$(KCROSS)bin' >> $@ | ||
20 | + $(Q)echo 'libdir=$(KLCC_INST)/$(KCROSS)lib' >> $@ | ||
21 | + $(Q)echo 'includedir=$(KLCC_INST)/$(KCROSS)include' >> $@ | ||
22 | |||
23 | |||
24 | # Generate klcc | ||