Work round ccache/timestamp problem in util-linux caused by a machine
authorJohn Bowler <jbowler@nslu2-linux.org>
Mon, 18 Jul 2005 00:55:55 +0000 (00:55 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 18 Jul 2005 00:55:55 +0000 (00:55 +0000)
generated .c seeming to be newer than the .o generated from it (cause by
fine granularity make timestamps apparently).

packages/meta/openslug-packages.bb
packages/util-linux/util-linux.inc

index 2a7bc68..3fb0587 100644 (file)
@@ -33,6 +33,7 @@ OPENSLUG_DEVELOPMENT = "\
        pciutils \
        quilt \
        sed \
+       util-linux \
        "
 
 # These packages only build on TARGET_OS=linux, not
@@ -40,7 +41,6 @@ OPENSLUG_DEVELOPMENT = "\
 OPENSLUG_DEVELOPMENT_append_linux = "\
        perl \
        tar \
-       util-linux \
        "
 
 
index df97498..5d4ed80 100644 (file)
@@ -33,5 +33,10 @@ do_compile () {
 }
 
 do_install () {
-       oe_runmake 'DESTDIR=${D}' install
+       # with ccache the timestamps on compiled files may
+       # end up earlier than on their inputs, this allows
+       # for the resultant compilation in the install step.
+       oe_runmake ARCH=${TARGET_ARCH} CPU= CPUOPT= \
+               'OPT=${CFLAGS}' 'CC=${CC}' 'LD=${LD}' \
+               'LDFLAGS=${LDFLAGS}' 'DESTDIR=${D}' install
 }