diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-17 12:29:18 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-17 12:29:18 +0000 |
commit | 4359a22bce6c50b585da1319974e72e968882782 (patch) | |
tree | 8745e5a1c201c2878a9ab1eaa28dd9fb9ea1144d /meta/packages/glibc | |
parent | 9734c516e8438c9ca892f1d2442c3e57b55e94d2 (diff) | |
download | poky-4359a22bce6c50b585da1319974e72e968882782.tar.gz |
glibc: Convert to use do_install for staging
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/glibc')
-rw-r--r-- | meta/packages/glibc/glibc-initial.inc | 22 | ||||
-rw-r--r-- | meta/packages/glibc/glibc-stage.inc | 7 |
2 files changed, 9 insertions, 20 deletions
diff --git a/meta/packages/glibc/glibc-initial.inc b/meta/packages/glibc/glibc-initial.inc index 127e93e9d3..8d864db91a 100644 --- a/meta/packages/glibc/glibc-initial.inc +++ b/meta/packages/glibc/glibc-initial.inc | |||
@@ -30,8 +30,8 @@ do_compile () { | |||
30 | : | 30 | : |
31 | } | 31 | } |
32 | 32 | ||
33 | do_stage () { | 33 | do_install () { |
34 | oe_runmake cross-compiling=yes install_root=${STAGING_DIR_HOST} \ | 34 | oe_runmake cross-compiling=yes install_root=${D} \ |
35 | includedir='${includedir}' prefix='${prefix}' \ | 35 | includedir='${includedir}' prefix='${prefix}' \ |
36 | install-bootstrap-headers=yes install-headers | 36 | install-bootstrap-headers=yes install-headers |
37 | 37 | ||
@@ -39,19 +39,15 @@ do_stage () { | |||
39 | # Two headers -- stubs.h and features.h -- aren't installed by install-headers, | 39 | # Two headers -- stubs.h and features.h -- aren't installed by install-headers, |
40 | # so do them by hand. We can tolerate an empty stubs.h for the moment. | 40 | # so do them by hand. We can tolerate an empty stubs.h for the moment. |
41 | # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html | 41 | # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html |
42 | mkdir -p ${STAGING_INCDIR}/gnu | 42 | mkdir -p ${D}${includedir}/gnu/ |
43 | touch ${STAGING_INCDIR}/gnu/stubs.h | 43 | touch ${D}${includedir}/gnu/stubs.h |
44 | cp ${S}/include/features.h ${STAGING_INCDIR}/features.h | 44 | cp ${S}/include/features.h ${D}${includedir}/features.h |
45 | 45 | ||
46 | if [ -e ${B}/bits/stdio_lim.h ]; then | 46 | if [ -e ${B}/bits/stdio_lim.h ]; then |
47 | cp ${B}/bits/stdio_lim.h ${STAGING_INCDIR}/bits/ | 47 | cp ${B}/bits/stdio_lim.h ${D}${includedir}/bits/ |
48 | fi | 48 | fi |
49 | mkdir -p ${STAGING_DIR_TARGET}${libdir} | 49 | mkdir -p ${D}${libdir}/ |
50 | install -m 644 csu/crt[1in].o ${STAGING_DIR_TARGET}${libdir} | 50 | install -m 644 csu/crt[1in].o ${D}${libdir} |
51 | ${CC} -nostdlib -nostartfiles -shared -x c /dev/null \ | 51 | ${CC} -nostdlib -nostartfiles -shared -x c /dev/null \ |
52 | -o ${STAGING_DIR_TARGET}${libdir}/libc.so | 52 | -o ${D}${libdir}/libc.so |
53 | } | ||
54 | |||
55 | do_install () { | ||
56 | : | ||
57 | } | 53 | } |
diff --git a/meta/packages/glibc/glibc-stage.inc b/meta/packages/glibc/glibc-stage.inc index e43bffa464..e69de29bb2 100644 --- a/meta/packages/glibc/glibc-stage.inc +++ b/meta/packages/glibc/glibc-stage.inc | |||
@@ -1,7 +0,0 @@ | |||
1 | do_stage() { | ||
2 | # Installing directly into staging creates some races between existing | ||
3 | # glibc-initial files and us. We could use a new DESTDIR but we may as | ||
4 | # well just copy the data installed by do_install | ||
5 | cp -pPR ${D}/* ${STAGING_DIR_HOST}/ | ||
6 | } | ||
7 | |||