Compare commits
43 Commits
zeus
...
update-enh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f62fa64eca | ||
|
|
9ebd223d47 | ||
|
|
ab8d24794e | ||
|
|
93a4e97816 | ||
|
|
1e88143ba8 | ||
|
|
9e4474c2f2 | ||
|
|
595fbe4d32 | ||
|
|
d79199c35a | ||
|
|
dbbac53a6d | ||
|
|
bf8c07c569 | ||
|
|
9fc3dc01c2 | ||
|
|
ed7682ca70 | ||
|
|
c04023ae7c | ||
|
|
2f33aae751 | ||
|
|
446da46495 | ||
|
|
4920b0d8c6 | ||
|
|
6f4fa506aa | ||
|
|
b5940827d8 | ||
|
|
06000b9231 | ||
|
|
b550845bc4 | ||
|
|
08c4665a82 | ||
|
|
e450bd9313 | ||
|
|
f163bf441c | ||
|
|
4b8921dd23 | ||
|
|
0437dd8d15 | ||
|
|
549b52ed48 | ||
|
|
0cf33d763e | ||
|
|
5e95d64cca | ||
|
|
409483d5b5 | ||
|
|
f6e72fa2e3 | ||
|
|
e9ac12e6f2 | ||
|
|
ec7946dcb0 | ||
|
|
a480769628 | ||
|
|
f3ae63b9c5 | ||
|
|
6faee2bd7e | ||
|
|
1ee6848e33 | ||
|
|
3c73cc6208 | ||
|
|
6deef03d0f | ||
|
|
d66556e2aa | ||
|
|
190e71805e | ||
|
|
af34ecdd84 | ||
|
|
bd86dda708 | ||
|
|
28e8c91482 |
@@ -1 +0,0 @@
|
||||
PACKAGECONFIG_remove = "introspection"
|
||||
@@ -1,6 +1,6 @@
|
||||
PACKAGECONFIG ?= " \
|
||||
sndfile \
|
||||
jack \
|
||||
pulseaudio \
|
||||
portaudio \
|
||||
readline \
|
||||
sndfile \
|
||||
"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
PACKAGECONFIG_append = " gnome"
|
||||
1
appends/meta-oe/nodejs_%.bbappend
Normal file
1
appends/meta-oe/nodejs_%.bbappend
Normal file
@@ -0,0 +1 @@
|
||||
PACKAGECONFIG_append = " shared"
|
||||
2
appends/oe-core/weston%.bbappend
Normal file
2
appends/oe-core/weston%.bbappend
Normal file
@@ -0,0 +1,2 @@
|
||||
# A root session without password activated by just two keys - honestly..
|
||||
RRECOMMENDS_${PN}_remove = "weston-init"
|
||||
@@ -173,7 +173,7 @@ do_copy_to_target_sysroot() {
|
||||
fi
|
||||
}
|
||||
|
||||
addtask copy_to_target_sysroot after do_package before do_build
|
||||
addtask copy_to_target_sysroot after do_package_write_deb do_package_write_ipk do_package_write_rpm before do_build
|
||||
|
||||
# same as do package
|
||||
do_copy_to_target_sysroot[vardeps] = "${PACKAGEBUILDPKGD} ${PACKAGESPLITFUNCS} ${PACKAGEFUNCS} ${@gen_packagevar(d)}"
|
||||
|
||||
@@ -4,7 +4,7 @@ def armv7_tune_handler(d):
|
||||
# to common tune value
|
||||
if d.getVar('MORTSGNA_ARMV7_TUNE') == '1':
|
||||
features = d.getVar('TUNE_FEATURES').split()
|
||||
if 'armv7a' in features or 'armv7ve' in features:
|
||||
if 'armv7a' in features or 'armv7ve' or 'armv7ve' or 'cortexa7' or 'cortexa8' or 'cortexa9' in features:
|
||||
tune = 'armv7athf'
|
||||
if 'bigendian' in features:
|
||||
tune += 'b'
|
||||
@@ -12,6 +12,5 @@ def armv7_tune_handler(d):
|
||||
tune += '-neon'
|
||||
else:
|
||||
tune = d.getVar('DEFAULTTUNE')
|
||||
|
||||
return tune
|
||||
|
||||
|
||||
@@ -34,10 +34,10 @@ VIRTUAL-RUNTIME_init_manager = "systemd"
|
||||
# USE-flag like features
|
||||
DISTRO_FEATURES += "tk"
|
||||
DISTRO_FEATURES += "x11"
|
||||
DISTRO_FEATURES += "3g"
|
||||
DISTRO_FEATURES += "pulseaudio"
|
||||
DISTRO_FEATURES += "ldconfig"
|
||||
DISTRO_FEATURES += "polkit"
|
||||
DISTRO_FEATURES += "helpfiles"
|
||||
|
||||
# OpenGL support
|
||||
DISTRO_FEATURES += "opengl"
|
||||
@@ -56,3 +56,6 @@ DISTRO_FEATURES += "${DISTRO_WAYLAND}"
|
||||
# Inherit the default LIBC features superset from OE-core
|
||||
DISTRO_FEATURES += "${DISTRO_FEATURES_LIBC}"
|
||||
|
||||
# Uncomment for tests on gold-trouble only
|
||||
#DISTRO_FEATURES += 'ld-is-gold'
|
||||
|
||||
|
||||
@@ -22,3 +22,13 @@ XSERVER ?= " \
|
||||
xf86-video-modesetting \
|
||||
"
|
||||
|
||||
# Follow meta-java README:
|
||||
# Possible provider: cacao-initial-native and jamvm-initial-native
|
||||
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
|
||||
|
||||
# Possible provider: cacao-native and jamvm-native
|
||||
PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
|
||||
|
||||
# Optional since there is only one provider for now
|
||||
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
###############################################################################
|
||||
|
||||
# follow Yocto version scheme
|
||||
DISTRO_VERSION = "v2.7"
|
||||
DISTRO_VERSION = "v3.1"
|
||||
|
||||
# With Angstrom we had DISTRO_TYPE = "debug"/"release". No recipe except
|
||||
# good old lxdm takes care (yes it was me). OE-Core way is setting
|
||||
@@ -131,15 +131,20 @@ require conf/distro/include/no-static-libs.inc
|
||||
# 1. They make sense
|
||||
# 2. Many poky users out there might complain about my other layers or patches
|
||||
# sent
|
||||
# wait with 'mime' & 'mime-xdg' (meta-browser tests with old branches)
|
||||
WARN_TO_ERROR_QA = " \
|
||||
already-stripped compile-host-path install-host-path \
|
||||
installed-vs-shipped ldflags pn-overrides rpaths staticdev \
|
||||
xorg-driver-abi textrel incompatible-license files-invalid infodir \
|
||||
build-deps symlink-to-sysroot multilib \
|
||||
installed-vs-shipped ldflags pn-overrides rpaths staticdev libdir \
|
||||
uppercase-pn \
|
||||
unknown-configure-option useless-rpaths host-user-contaminated \
|
||||
invalid-packageconfig patch-fuzz src-uri-bad \
|
||||
"
|
||||
WARN_QA_remove = "${WARN_TO_ERROR_QA}"
|
||||
ERROR_QA_append = " ${WARN_TO_ERROR_QA}"
|
||||
|
||||
PNBLACKLIST[weston-init] = "A passwordless root session reachable by two keys - security???"
|
||||
|
||||
###############################################################################
|
||||
# Image defaults
|
||||
@@ -193,6 +198,7 @@ EXTRA_IMAGE_FEATURES += " \
|
||||
empty-root-password \
|
||||
allow-empty-password \
|
||||
post-install-logging \
|
||||
volatile-log \
|
||||
"
|
||||
|
||||
# make x11-base a valid IMAGE_FEATURES
|
||||
|
||||
@@ -8,7 +8,7 @@ BBFILE_COLLECTIONS += "mortsgna-layer"
|
||||
BBFILE_PATTERN_mortsgna-layer := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_mortsgna-layer = "7"
|
||||
|
||||
LAYERSERIES_COMPAT_mortsgna-layer = "sumo thud warrior zeus"
|
||||
LAYERSERIES_COMPAT_mortsgna-layer = "zeus dunfell"
|
||||
|
||||
# This is a compromise: Because of dynamic appends it needs oe-core only. Our
|
||||
# images have a huge dependency list (see README). So the layers set here are
|
||||
@@ -20,6 +20,8 @@ BBFILES_DYNAMIC += " \
|
||||
\
|
||||
gnome-layer:${LAYERDIR}/appends/meta-gnome/*.bbappend \
|
||||
\
|
||||
networking-layer:${LAYERDIR}/appends/meta-networking/*.bbappend \
|
||||
\
|
||||
multimedia-layer:${LAYERDIR}/appends/meta-multimedia/*.bbappend \
|
||||
\
|
||||
openembedded-layer:${LAYERDIR}/appends/meta-oe/*.bbappend \
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[Desktop Entry]
|
||||
Hidden=true
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[Desktop Entry]
|
||||
Hidden=true
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[Desktop Entry]
|
||||
Hidden=true
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[Desktop Entry]
|
||||
Hidden=true
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[Desktop Entry]
|
||||
Hidden=true
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
[Desktop Entry]
|
||||
Hidden=true
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
[General]
|
||||
Show_Title=false
|
||||
Show_Labels=false
|
||||
str_fontsize=small
|
||||
val_fontsize=1
|
||||
Font=Sans 11
|
||||
Show_Units=true
|
||||
Small_Spacings=false
|
||||
Command_Name=xfce4-sensors
|
||||
|
||||
[Chip0]
|
||||
Name=ACPI
|
||||
Number=0
|
||||
|
||||
[Chip0_Feature0]
|
||||
Address=0
|
||||
Name=thermal_zone0
|
||||
Color=#008000
|
||||
Show=true
|
||||
Min=0.00
|
||||
Max=70.00
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
ColorForeground=#ffffffffffff
|
||||
ColorBackground=#000000000000
|
||||
ColorCursor=#a0a0a0a0a0a0
|
||||
FontName=Monospace 9
|
||||
FontName=Monospace 10
|
||||
MiscAlwaysShowTabs=FALSE
|
||||
MiscBell=FALSE
|
||||
MiscBordersDefault=TRUE
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<value type="int" value="2"/>
|
||||
<value type="int" value="4"/>
|
||||
<value type="int" value="11"/>
|
||||
<value type="int" value="7"/>
|
||||
<value type="int" value="12"/>
|
||||
<value type="int" value="1"/>
|
||||
</property>
|
||||
@@ -85,5 +86,6 @@
|
||||
<property name="plugin-1" type="string" value="cpugraph"/>
|
||||
<property name="plugin-11" type="string" value="cpufreq"/>
|
||||
<property name="plugin-12" type="string" value="systemload"/>
|
||||
<property name="plugin-7" type="string" value="xfce4-sensors-plugin"/>
|
||||
</property>
|
||||
</channel>
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
<channel name="xfce4-settings-manager" version="1.0">
|
||||
<property name="last" type="empty">
|
||||
<property name="window-width" type="int" value="858"/>
|
||||
<property name="window-height" type="int" value="661"/>
|
||||
<property name="window-height" type="int" value="675"/>
|
||||
</property>
|
||||
</channel>
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
[Default Applications]
|
||||
application/x-bzip-compressed-tar=xarchiver.desktop
|
||||
application/x-compressed-tar=xarchiver.desktop
|
||||
text/plain=gedit.desktop
|
||||
application/x-lrzip=xarchiver.desktop
|
||||
application/x-bzip=xarchiver.desktop
|
||||
application/gzip=xarchiver.desktop
|
||||
application/x-lzip=xarchiver.desktop
|
||||
application/zip=xarchiver.desktop
|
||||
application/x-lzma-compressed-tar=xarchiver.desktop
|
||||
application/x-tar=xarchiver.desktop
|
||||
application/x-tarz=xarchiver.desktop
|
||||
application/x-ustar=xarchiver.desktop
|
||||
application/x-xz-compressed-tar=xarchiver.desktop
|
||||
image/png=ristretto.desktop
|
||||
image/jpeg=ristretto.desktop
|
||||
application/x-deb=xarchiver.desktop
|
||||
application/pdf=evince.desktop
|
||||
|
||||
[Added Associations]
|
||||
application/x-bzip-compressed-tar=xarchiver.desktop;
|
||||
application/x-compressed-tar=xarchiver.desktop;
|
||||
text/plain=gedit.desktop;
|
||||
application/x-lrzip=xarchiver.desktop;
|
||||
application/x-bzip=xarchiver.desktop;
|
||||
application/gzip=xarchiver.desktop;
|
||||
application/x-lzip=xarchiver.desktop;
|
||||
application/zip=xarchiver.desktop;
|
||||
application/x-lzma-compressed-tar=xarchiver.desktop;
|
||||
application/x-tar=xarchiver.desktop;
|
||||
application/x-tarz=xarchiver.desktop;
|
||||
application/x-ustar=xarchiver.desktop;
|
||||
application/x-xz-compressed-tar=xarchiver.desktop;
|
||||
image/png=ristretto.desktop;
|
||||
image/jpeg=ristretto.desktop;
|
||||
application/x-deb=xarchiver.desktop;
|
||||
application/pdf=evince.desktop;
|
||||
@@ -17,6 +17,8 @@ IMAGE_INSTALL += " \
|
||||
network-manager-applet \
|
||||
xfce4-default-config \
|
||||
\
|
||||
packagegroup-gnome-desktop \
|
||||
\
|
||||
packagegroup-lxqt-base \
|
||||
lxqt-default-config \
|
||||
\
|
||||
|
||||
@@ -13,5 +13,7 @@ IMAGE_INSTALL += " \
|
||||
\
|
||||
packagegroup-kde-apps-tiny \
|
||||
\
|
||||
packagegroup-gnome-apps \
|
||||
\
|
||||
weston-examples \
|
||||
"
|
||||
|
||||
@@ -13,7 +13,6 @@ IMAGE_INSTALL += " \
|
||||
systemd-analyze \
|
||||
cpufrequtils \
|
||||
htop \
|
||||
fixmac \
|
||||
util-linux-lsblk \
|
||||
nano \
|
||||
"
|
||||
|
||||
@@ -5,6 +5,7 @@ NETWORKPACKS ?= " \
|
||||
avahi-autoipd \
|
||||
iputils \
|
||||
networkmanager \
|
||||
networkmanager-openvpn \
|
||||
networkmanager-bash-completion \
|
||||
"
|
||||
|
||||
|
||||
19
recipes-image/gnome/gnome-base-image.bb
Normal file
19
recipes-image/gnome/gnome-base-image.bb
Normal file
@@ -0,0 +1,19 @@
|
||||
require recipes-image/console/console-net-image.bb
|
||||
require recipes-image/include/x11-base.inc
|
||||
|
||||
export IMAGE_BASENAME = "gnome-base-image"
|
||||
|
||||
GNOME_DM ?= "gdm"
|
||||
|
||||
IMAGE_INSTALL += " \
|
||||
${X11_BASE_INSTALL} \
|
||||
${GNOME_DM} \
|
||||
\
|
||||
packagegroup-gnome-desktop \
|
||||
packagegroup-gui-base \
|
||||
\
|
||||
network-manager-applet \
|
||||
"
|
||||
|
||||
# reenable graphical target
|
||||
IMAGE_FEATURES += "x11-base"
|
||||
10
recipes-image/gnome/gnome-tiny-image.bb
Normal file
10
recipes-image/gnome/gnome-tiny-image.bb
Normal file
@@ -0,0 +1,10 @@
|
||||
require gnome-base-image.bb
|
||||
|
||||
export IMAGE_BASENAME = "gnome-tiny-image"
|
||||
|
||||
IMAGE_INSTALL += " \
|
||||
packagegroup-gnome-apps \
|
||||
\
|
||||
packagegroup-gui-tiny \
|
||||
"
|
||||
|
||||
@@ -4,7 +4,7 @@ X11_BASE_INSTALL += " \
|
||||
${DISTRO_GUI_USER} \
|
||||
packagegroup-core-x11-xserver \
|
||||
\
|
||||
dbus-x11 \
|
||||
dbus \
|
||||
iso-codes \
|
||||
mime-support \
|
||||
xauth \
|
||||
|
||||
@@ -8,7 +8,7 @@ RDEPENDS_${PN} = " \
|
||||
qt5-creator \
|
||||
qtquickcontrols2-examples qtwayland-examples \
|
||||
hexedit \
|
||||
glade3 glade \
|
||||
glade \
|
||||
umbrello \
|
||||
lokalize \
|
||||
geany-plugins \
|
||||
@@ -17,7 +17,7 @@ RDEPENDS_${PN} = " \
|
||||
weston weston-xwayland \
|
||||
\
|
||||
unzip xz tar bzip2 \
|
||||
make cmake \
|
||||
make cmake meson \
|
||||
automake autoconf libtool m4 \
|
||||
gcc-symlinks g++-symlinks cpp-symlinks \
|
||||
dtc \
|
||||
@@ -39,6 +39,7 @@ RDEPENDS_${PN} = " \
|
||||
lmsensors-sensord lmsensors-sensorsdetect \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'browser-layer', 'chromium-x11', '', d)} \
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-microcontroller', 'packagegroup-avr', '', d)} \
|
||||
"
|
||||
|
||||
RDEPENDS_${PN}_append_libc-glibc = " \
|
||||
|
||||
@@ -17,44 +17,36 @@ RDEPENDS_${PN} = " \
|
||||
tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \
|
||||
tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'office-layer', 'libreoffice', '', d)} \
|
||||
abiword-meta \
|
||||
gimp \
|
||||
fontforge \
|
||||
menulibre \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'browser-layer', 'chromium-x11', '', d)} \
|
||||
\
|
||||
gparted \
|
||||
\
|
||||
mpd \
|
||||
vlc \
|
||||
parole gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-omx gstreamer1.0-libav \
|
||||
dragon \
|
||||
gstreamer1.0-plugins-base-meta gstreamer1.0-plugins-good-meta \
|
||||
pulseaudio-misc \
|
||||
${MACHINE_SPECIFICS_FULL} \
|
||||
\
|
||||
ark \
|
||||
filelight \
|
||||
konsole \
|
||||
spectacle \
|
||||
\
|
||||
kde-apps-world \
|
||||
\
|
||||
gottcode-world \
|
||||
\
|
||||
qwt-qt5-examples \
|
||||
gnuplot gnuplot-x11 \
|
||||
qskinny \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-retro', 'mame dosbox z80 vice stella opentyrian d1x-rebirth', '', d)} \
|
||||
${MACHINE_SPECIFICS_FULL} \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'browser-layer', 'chromium-x11', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-retro', 'mame dosbox cass80 z80 vice stella opentyrian d1x-rebirth', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'office-layer', 'libreoffice abiword-meta', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'games-layer', 'pingus supertux2 freeciv wesnoth-all astromenace chromium-bsu maelstrom', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-musicians', 'packagegroup-gui-musicians', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'sdr-layer', 'packagegroup-sdr-python-extended packagegroup-sdr-gnuradio-base packagegroup-sdr-gnuradio-extended packagegroup-sdr-rtlsdr packagegroup-sdr-uhd', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-qt5-extra', 'qmlarkdown', '', d)} \
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-qt5-extra', 'gottcode-world kde-apps-world qmlarkdown', '', d)} \
|
||||
"
|
||||
|
||||
# firefox
|
||||
|
||||
@@ -5,14 +5,12 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
|
||||
inherit packagegroup
|
||||
|
||||
RDEPENDS_${PN} = " \
|
||||
tzdata \
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-initramfs', 'plymouth plymouth-set-default-theme plymouth-initrd', '', d)} \
|
||||
xdg-user-dirs \
|
||||
\
|
||||
evince \
|
||||
geany \
|
||||
\
|
||||
ntp ntp-utils \
|
||||
tzdata \
|
||||
dnsmasq \
|
||||
devilspie2 \
|
||||
|
||||
@@ -4,9 +4,6 @@ export IMAGE_BASENAME = "xfce4-music-image"
|
||||
|
||||
XFCE_DM = "sddm sddm-morona-autologin"
|
||||
|
||||
# Saving to SDCard creates delays/underruns
|
||||
IMAGE_FEATURES += "volatile-log"
|
||||
|
||||
IMAGE_INSTALL += " \
|
||||
packagegroup-gui-musicians \
|
||||
\
|
||||
|
||||
@@ -8,5 +8,6 @@ IMAGE_INSTALL += " \
|
||||
rodent-icon-theme \
|
||||
\
|
||||
packagegroup-gui-tiny \
|
||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-musicians', 'xfce4-mixer', '', d)} \
|
||||
"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# raspberrypi-card-write.sh
|
||||
# (c) Copyright 2018 Andreas Müller <schnitzeltony@gmail.com>
|
||||
# (c) Copyright 2020 Andreas Müller <schnitzeltony@gmail.com>
|
||||
# Licensed under terms of GPLv2
|
||||
#
|
||||
# This script updates checksums in recipes after version bump. It is supposed
|
||||
@@ -20,31 +20,41 @@ if [ "$1" = "-d" ]; then
|
||||
_TOPDIR="$1"
|
||||
echo -e "${style_bold}Use $1 as recipe directory...${style_normal}"
|
||||
shift
|
||||
else
|
||||
echo -e "${style_bold}Ask bitbake for recipe directory...${style_normal}"
|
||||
GetBitbakeEnvVar "TOPDIR"
|
||||
_TOPDIR="$BitbakeEnvVar"
|
||||
fi
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
ErrorOut "No fetch target set in first parameter!"
|
||||
fi
|
||||
|
||||
if [ "x$_TOPDIR" = "x" ]; then
|
||||
echo -e "${style_bold}Ask bitbake for recipe directory...${style_normal}"
|
||||
GetBitbakeEnvVar "TOPDIR"
|
||||
_TOPDIR="$BitbakeEnvVar"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo -e "${style_bold}Run bitbake -k --runall=fetch $@...${style_normal}"
|
||||
|
||||
bitbake -k --runall=fetch "$@" 2>&1 | while read line; do
|
||||
if echo "$line" | grep -q "was expected"; then
|
||||
# Shorten line to ensure not being confused by filenames containing spaces
|
||||
line=`echo "$line" | sed 's:.*checksum ::'`
|
||||
# Extract checksums
|
||||
newchecksum=`echo "$line" | awk '{print $1}'`
|
||||
oldchecksum=`echo "$line" | awk '{print $3}'`
|
||||
# Lazy way: just grep for old checksums to find recipes
|
||||
for recipe in `grep -rl "$oldchecksum" "${_TOPDIR}"`; do
|
||||
if [ -f "$recipe" ]; then
|
||||
EvalExAuto "sed -i '"s:$oldchecksum:$newchecksum:"' "$recipe"" "Change checksum in $recipe to $newchecksum"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
while true; do
|
||||
replaced=""
|
||||
bitbake -k --runall=fetch "$@" 2>&1 | while read line; do
|
||||
if echo "$line" | grep -q "was expected"; then
|
||||
# Shorten line to ensure not being confused by filenames containing spaces
|
||||
line=`echo "$line" | sed 's:.*checksum ::'`
|
||||
# Extract checksums
|
||||
newchecksum=`echo "$line" | awk '{print $1}'`
|
||||
oldchecksum=`echo "$line" | awk '{print $3}'`
|
||||
# Lazy way: just grep for old checksums to find recipes
|
||||
for recipe in `grep -rl "$oldchecksum" "${_TOPDIR}"`; do
|
||||
if [ -f "$recipe" ]; then
|
||||
replaced="1"
|
||||
EvalExAuto "sed -i '"s:$oldchecksum:$newchecksum:"' "$recipe"" "Change checksum in $recipe to $newchecksum"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
if [ $replaced != "1" ]
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user