Files
poky/meta/recipes-devtools
Hannu Lounento 2a092f4aec i2c-tools: use update-alternatives
i2cget, i2cset, i2cdump and i2cdetect may also be provided by Busybox
when CONFIG_I2CGET, CONFIG_I2CSET, CONFIG_I2CDUMP and CONFIG_I2CDETECT
are enabled respectively.

Busybox has a priority of 50.

Prior to the patch building core-image-minimal with

    IMAGE_INSTALL_append = " busybox"
    IMAGE_INSTALL_append = " i2c-tools"

in local.conf produced the warnings

    WARNING: core-image-minimal-1.0-r0 do_rootfs: busybox.postinst returned 1, marking as unpacked only, configuration required on target.
    WARNING: core-image-minimal-1.0-r0 do_rootfs: Intentionally failing postinstall scriptlets of ['busybox'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().
    If deferring to first boot wasn't the intent, then scriptlet failure may mean an issue in the recipe, or a regression elsewhere.
    Details of the failure are in /path/to/poky/build/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.
    WARNING: core-image-minimal-1.0-r0 do_rootfs: [log_check] core-image-minimal: found 1 warning message in the logfile:
    [log_check] WARNING: Intentionally failing postinstall scriptlets of ['busybox'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ().

where log.do_rootfs contained

    update-alternatives: Error: not linking /path/to/poky/build/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/rootfs/usr/sbin/i2cget to /bin/busybox.nosuid since /path/to/poky/build/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/rootfs/usr/sbin/i2cget exists and is not a link

and similarly for i2cset, i2cdump and i2cdetect when a workspace layer
created by devtool contained

    cat workspace/appends/busybox_%.bbappend
    FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

    SRC_URI_append = " file://i2c.cfg"

and

    cat workspace/appends/busybox/i2c.cfg
    CONFIG_I2CGET=y
    CONFIG_I2CSET=y
    CONFIG_I2CDETECT=y
    CONFIG_I2CDUMP=y

(From OE-Core rev: 391f0fb76c286734cc9be57b825efe02b6999faf)

Signed-off-by: Hannu Lounento <hannu.lounento@vaisala.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-05-29 21:07:16 +01:00
..
2018-03-09 09:17:03 -08:00
2018-03-09 09:17:03 -08:00
2018-03-07 06:34:51 -08:00
2017-08-09 09:24:16 +01:00
2018-04-03 23:53:19 +01:00
2018-05-29 21:07:12 +01:00
2017-06-28 15:52:18 +01:00
2018-03-20 09:59:32 +00:00
2018-04-05 14:49:07 +01:00
2018-03-06 06:43:10 -08:00
2017-08-13 09:27:38 +01:00
2017-11-21 13:06:12 +00:00
2018-05-22 13:13:33 +01:00
2018-03-04 11:35:40 +00:00
2018-02-06 11:06:28 +00:00
2018-05-15 10:56:49 +01:00
2018-03-09 09:17:03 -08:00
2018-05-11 07:49:37 +01:00
2018-01-02 17:24:37 +00:00
2018-03-11 06:27:00 -07:00
2018-01-30 12:53:16 +00:00
2018-05-29 21:07:13 +01:00
2018-03-11 06:27:01 -07:00
2018-03-31 09:48:42 +01:00
2018-03-07 06:34:51 -08:00
2018-04-03 23:53:20 +01:00
2018-03-04 11:35:40 +00:00
2017-12-18 18:03:56 +00:00
2018-04-13 16:58:07 +01:00
2018-01-13 10:15:20 +00:00
2018-04-23 17:26:04 +01:00
2018-05-22 13:13:33 +01:00
2018-05-04 13:28:05 +01:00
2018-02-06 11:06:28 +00:00
2018-05-04 13:28:04 +01:00
2018-05-15 10:56:50 +01:00
2018-03-09 09:17:03 -08:00
2018-03-11 06:27:00 -07:00
2018-02-06 11:06:29 +00:00
2018-05-08 16:14:14 +01:00