[OE-core] how to bbappend(?) to u-boot-fw-utils to add a custom /etc/fw_env.config??
Robert P. J. Day
rpjday at crashcourse.ca
Wed Jul 6 18:21:27 UTC 2016
On Wed, 6 Jul 2016, Gary Thomas wrote:
,,, snip ...
> I do something like this in my machine layer, in a .u-boot-fw-utils_%.bbappend
> file:
>
> ====================================================================
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
>
> SRC_URI += "file://fw_env.config"
>
> do_install_append() {
> install -d ${D}${sysconfdir}
> install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
> }
>
> PACKAGE_ARCH = "${MACHINE_ARCH}"
>
> ====================================================================
>
> Yes, this "installs" the same file twice, but it does what you
> need, it installs the desired file in the correct place. And, yes,
> it's too bad that this "info" is kept in two completely different
> recipes.
that is, pretty much, line for line what i came up with as well. as
you suggest, it just seems ... sloppy.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
More information about the Openembedded-core
mailing list