Openembedded Core Discussions
 help / color / mirror / Atom feed
* why would a recipe have both do_install() and do_install_append()?
@ 2012-07-04  2:22 Robert P. J. Day
  2012-07-04  6:32 ` Khem Raj
  0 siblings, 1 reply; 9+ messages in thread
From: Robert P. J. Day @ 2012-07-04  2:22 UTC (permalink / raw)
  To: OE Core mailing list


  i'm probably just misreading something, but what is the point of a
recipe having both a do_install() and do_install_append() function?
for example, here's part of e2fsprogs_1.42.1.bb:

do_install () {
        oe_runmake 'DESTDIR=${D}' install
        oe_runmake 'DESTDIR=${D}' install-libs
        # We use blkid from util-linux now so remove from here
        rm -f ${D}${base_libdir}/libblkid*
        rm -rf ${D}${includedir}/blkid
        rm -f ${D}${base_libdir}/pkgconfig/blkid.pc
}

do_install_append () {
        # e2initrd_helper and the pkgconfig files belong in libdir
        if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
                install -d ${D}${libdir}
                mv ${D}${base_libdir}/e2initrd_helper ${D}${libdir}
                mv ${D}${base_libdir}/pkgconfig ${D}${libdir}
        fi
}

  how does that differ from simply defining a single do_install()
routine?  i'm willing for this to be a dumb question.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-07-09 10:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-04  2:22 why would a recipe have both do_install() and do_install_append()? Robert P. J. Day
2012-07-04  6:32 ` Khem Raj
2012-07-04 10:04   ` Andreas Oberritter
2012-07-04 10:16     ` Robert P. J. Day
2012-07-04 11:29       ` Richard Purdie
2012-07-05  5:39         ` Khem Raj
2012-07-05 10:14           ` Robert P. J. Day
2012-07-05 17:32             ` Scott Garman
2012-07-09 10:08               ` Andrei Gherzan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox