diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 11 | ||||
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 3 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 2 |
4 files changed, 12 insertions, 6 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 1537079bb0..324d83f751 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -224,6 +224,14 @@ translate_oe_to_smart() { | |||
224 | export pkgs_to_install | 224 | export pkgs_to_install |
225 | } | 225 | } |
226 | 226 | ||
227 | package_write_smart_config() { | ||
228 | # Write common configuration for host and target usage | ||
229 | smart --data-dir=$1/var/lib/smart config --set rpm-nolinktos=1 | ||
230 | smart --data-dir=$1/var/lib/smart config --set rpm-noparentdirs=1 | ||
231 | for i in ${BAD_RECOMMENDATIONS}; do | ||
232 | smart --data-dir=$1/var/lib/smart flag --set ignore-recommends $i | ||
233 | done | ||
234 | } | ||
227 | 235 | ||
228 | # | 236 | # |
229 | # Install a bunch of packages using rpm. | 237 | # Install a bunch of packages using rpm. |
@@ -345,10 +353,9 @@ EOF | |||
345 | rm -rf ${target_rootfs}/var/lib/smart | 353 | rm -rf ${target_rootfs}/var/lib/smart |
346 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-root=${target_rootfs} | 354 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-root=${target_rootfs} |
347 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-dbpath=${rpmlibdir} | 355 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-dbpath=${rpmlibdir} |
348 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-nolinktos=1 | ||
349 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-noparentdirs=1 | ||
350 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._var=${localstatedir} | 356 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._var=${localstatedir} |
351 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp | 357 | smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp |
358 | package_write_smart_config ${target_rootfs} | ||
352 | # Optional debugging | 359 | # Optional debugging |
353 | #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-level=debug | 360 | #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-level=debug |
354 | #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-file=/tmp/smart-debug-logfile | 361 | #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-file=/tmp/smart-debug-logfile |
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 1403422ca7..c9650cb6c7 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -21,8 +21,6 @@ OPKG_POSTPROCESS_COMMANDS = "ipk_insert_feed_uris; " | |||
21 | 21 | ||
22 | OPKGLIBDIR = "${localstatedir}/lib" | 22 | OPKGLIBDIR = "${localstatedir}/lib" |
23 | 23 | ||
24 | # Which packages to not install on the basis of a recommendation | ||
25 | BAD_RECOMMENDATIONS ?= "" | ||
26 | MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg" | 24 | MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg" |
27 | 25 | ||
28 | fakeroot rootfs_ipk_do_rootfs () { | 26 | fakeroot rootfs_ipk_do_rootfs () { |
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 1b09c8d5ff..30b52d4da2 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -163,8 +163,7 @@ rpm_setup_smart_target_config() { | |||
163 | # Set up smart configuration for the target | 163 | # Set up smart configuration for the target |
164 | rm -rf ${IMAGE_ROOTFS}/var/lib/smart | 164 | rm -rf ${IMAGE_ROOTFS}/var/lib/smart |
165 | smart --data-dir=${IMAGE_ROOTFS}/var/lib/smart channel --add rpmsys type=rpm-sys -y | 165 | smart --data-dir=${IMAGE_ROOTFS}/var/lib/smart channel --add rpmsys type=rpm-sys -y |
166 | smart --data-dir=${IMAGE_ROOTFS}/var/lib/smart config --set rpm-nolinktos=1 | 166 | package_write_smart_config ${IMAGE_ROOTFS} |
167 | smart --data-dir=${IMAGE_ROOTFS}/var/lib/smart config --set rpm-noparentdirs=1 | ||
168 | rm -f ${IMAGE_ROOTFS}/var/lib/smart/config.old | 167 | rm -f ${IMAGE_ROOTFS}/var/lib/smart/config.old |
169 | } | 168 | } |
170 | 169 | ||
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 62a3936744..07eb473190 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -753,6 +753,8 @@ COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES" | |||
753 | SERIAL_CONSOLE ??= "" | 753 | SERIAL_CONSOLE ??= "" |
754 | SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}" | 754 | SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}" |
755 | 755 | ||
756 | BAD_RECOMMENDATIONS ?= "" | ||
757 | |||
756 | # Make sure MACHINE isn't exported | 758 | # Make sure MACHINE isn't exported |
757 | # (breaks binutils at least) | 759 | # (breaks binutils at least) |
758 | MACHINE[unexport] = "1" | 760 | MACHINE[unexport] = "1" |