summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-initial.inc
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-16 03:05:19 +0200
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-core/eglibc/eglibc-initial.inc
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-initial.inc')
-rw-r--r--meta/recipes-core/eglibc/eglibc-initial.inc78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-initial.inc b/meta/recipes-core/eglibc/eglibc-initial.inc
new file mode 100644
index 0000000000..0f0e1cd5e1
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-initial.inc
@@ -0,0 +1,78 @@
1DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial"
2PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
3
4PACKAGES = ""
5PACKAGES_DYNAMIC = ""
6
7STAGINGCC = "gcc-cross-initial"
8STAGINGCC_class-nativesdk = "gcc-crosssdk-initial"
9TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}"
10
11do_configure () {
12 sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure
13 chmod +x ${S}/configure
14 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
15 find ${S} -name "configure" | xargs touch
16 ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \
17 --prefix=/usr \
18 --without-cvs --disable-sanity-checks \
19 --with-headers=${STAGING_DIR_TARGET}${includedir} \
20 --with-kconfig=${STAGING_BINDIR_NATIVE} \
21 --enable-hacker-mode --enable-addons
22}
23
24do_compile () {
25 :
26}
27
28do_install () {
29 oe_runmake cross-compiling=yes install_root=${D} \
30 includedir='${includedir}' prefix='${prefix}' \
31 install-bootstrap-headers=yes install-headers
32
33 oe_runmake csu/subdir_lib
34 mkdir -p ${D}${libdir}/
35 install -m 644 csu/crt[1in].o ${D}${libdir}
36
37 # Two headers -- stubs.h and features.h -- aren't installed by install-headers,
38 # so do them by hand. We can tolerate an empty stubs.h for the moment.
39 # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html
40 mkdir -p ${D}${includedir}/gnu/
41 touch ${D}${includedir}/gnu/stubs.h
42 cp ${S}/include/features.h ${D}${includedir}/features.h
43
44 if [ -e ${B}/bits/stdio_lim.h ]; then
45 cp ${B}/bits/stdio_lim.h ${D}${includedir}/bits/
46 fi
47 # add links to linux-libc-headers: final eglibc build need this.
48 for t in linux asm asm-generic; do
49 ln -s ${STAGING_DIR_TARGET}${includedir}/$t ${D}${includedir}/
50 done
51}
52
53do_install_locale() {
54 :
55}
56
57do_siteconfig () {
58 :
59}
60
61SSTATEPOSTINSTFUNCS += "eglibcinitial_sstate_postinst"
62eglibcinitial_sstate_postinst() {
63 if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
64 then
65 # Recreate the symlinks to ensure they point to the correct location
66 for t in linux asm asm-generic; do
67 rm -f ${STAGING_DIR_TCBOOTSTRAP}${includedir}/$t
68 ln -s ${STAGING_DIR_TARGET}${includedir}/$t ${STAGING_DIR_TCBOOTSTRAP}${includedir}/
69 done
70 fi
71}
72
73do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}/"
74
75# We don't install any scripts so there is nothing to evacuate
76do_evacuate_scripts () {
77 :
78}