commit 4493021b5fd2815ce40b2d41481856efa0b8e2c9
parent 13a2daebf43dc379c170269f54710a3e65aaf946
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 30 Nov 2020 14:55:54 +0100
fix build
Diffstat:
12 files changed, 319 insertions(+), 0 deletions(-)
diff --git a/documentation.list b/documentation.list
diff --git a/installroot/usr/share/kickstarts/Jolla-@RELEASE@-t0lte-@ARCH@.ks b/installroot/usr/share/kickstarts/Jolla-@RELEASE@-t0lte-@ARCH@.ks
@@ -0,0 +1,206 @@
+# DisplayName: Jolla t0lte/@ARCH@ (release) 1
+# KickstartType: release
+# DeviceModel: t0lte
+# DeviceVariant: t0lte
+# Brand: Jolla
+# SuggestedImageType: fs
+# SuggestedArchitecture: armv7hl
+
+timezone --utc UTC
+
+### Commands from /tmp/sandbox/usr/share/ssu/kickstart/part/default
+part / --size 500 --ondisk sda --fstype=ext4
+
+## No suitable configuration found in /tmp/sandbox/usr/share/ssu/kickstart/bootloader
+
+repo --name=adaptation-community-common-t0lte-@RELEASE@ --baseurl=http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfish_latest_@ARCH@/
+repo --name=apps-@RELEASE@ --baseurl=https://releases.jolla.com/jolla-apps/@RELEASE@/@ARCH@/
+repo --name=customer-jolla-@RELEASE@ --baseurl=https://releases.jolla.com/features/@RELEASE@/customers/jolla/@ARCH@/
+repo --name=hotfixes-@RELEASE@ --baseurl=https://releases.jolla.com/releases/@RELEASE@/hotfixes/@ARCH@/
+repo --name=jolla-@RELEASE@ --baseurl=https://releases.jolla.com/releases/@RELEASE@/jolla/@ARCH@/
+
+%packages
+@Jolla Configuration t0lte
+%end
+
+%attachment
+### Commands from /tmp/sandbox/usr/share/ssu/kickstart/attachment/t0lte
+/boot/hybris-boot.img
+/boot/hybris-updater-script
+/boot/hybris-updater-unpack.sh
+/boot/update-binary
+
+%end
+
+%pre --erroronfail
+export SSU_RELEASE_TYPE=release
+### begin 01_init
+touch $INSTALL_ROOT/.bootstrap
+### end 01_init
+%end
+
+%post --erroronfail
+export SSU_RELEASE_TYPE=release
+### begin 01_arch-hack
+if [ "@ARCH@" == armv7hl ] || [ "@ARCH@" == armv7tnhl ] || [ "@ARCH@" == aarch64 ]; then
+ # Without this line the rpm does not get the architecture right.
+ echo -n "@ARCH@-meego-linux" > /etc/rpm/platform
+
+ # Also libzypp has problems in autodetecting the architecture so we force tha as well.
+ # https://bugs.meego.com/show_bug.cgi?id=11484
+ echo "arch = @ARCH@" >> /etc/zypp/zypp.conf
+fi
+### end 01_arch-hack
+### begin 01_rpm-rebuilddb
+# Rebuild db using target's rpm
+echo -n "Rebuilding db using target rpm.."
+rm -f /var/lib/rpm/__db*
+rpm --rebuilddb
+echo "done"
+### end 01_rpm-rebuilddb
+### begin 50_oneshot
+# exit boostrap mode
+rm -f /.bootstrap
+
+# export some important variables until there's a better solution
+export LANG=en_US.UTF-8
+export LC_COLLATE=en_US.UTF-8
+export GSETTINGS_BACKEND=gconf
+
+# run the oneshot triggers for root and first user uid
+UID_MIN=$(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2)
+DEVICEUSER=`getent passwd $UID_MIN | sed 's/:.*//'`
+
+if [ -x /usr/bin/oneshot ]; then
+ /usr/bin/oneshot --mic
+ su -c "/usr/bin/oneshot --mic" $DEVICEUSER
+fi
+### end 50_oneshot
+### begin 60_ssu
+if [ "$SSU_RELEASE_TYPE" = "rnd" ]; then
+ [ -n "@RNDRELEASE@" ] && ssu release -r @RNDRELEASE@
+ [ -n "@RNDFLAVOUR@" ] && ssu flavour @RNDFLAVOUR@
+ # RELEASE is reused in RND setups with parallel release structures
+ # this makes sure that an image created from such a structure updates from there
+ [ -n "@RELEASE@" ] && ssu set update-version @RELEASE@
+ ssu mode 2
+else
+ [ -n "@RELEASE@" ] && ssu release @RELEASE@
+ ssu mode 4
+fi
+### end 60_ssu
+### begin 70_sdk-domain
+
+export SSU_DOMAIN=@RNDFLAVOUR@
+
+if [ "$SSU_RELEASE_TYPE" = "release" ] && [[ "$SSU_DOMAIN" = "public-sdk" ]];
+then
+ ssu domain sailfish
+fi
+### end 70_sdk-domain
+### begin 90_accept_unsigned_packages
+sed -i /etc/zypp/zypp.conf \
+ -e '/^# pkg_gpgcheck =/ c \
+# Modified by kickstart. See sdk-configs sources\
+pkg_gpgcheck = off
+'
+### end 90_accept_unsigned_packages
+### begin 90_zypper_skip_check_access_deleted
+sed -i /etc/zypp/zypper.conf \
+ -e '/^# *psCheckAccessDeleted =/ c \
+# Modified by kickstart. See sdk-configs sources\
+psCheckAccessDeleted = no
+'
+### end 90_zypper_skip_check_access_deleted
+%end
+
+%post --nochroot --erroronfail
+export SSU_RELEASE_TYPE=release
+### begin 50_os-release
+(
+CUSTOMERS=$(find $INSTALL_ROOT/usr/share/ssu/features.d -name 'customer-*.ini' \
+ |xargs --no-run-if-empty sed -n 's/^name[[:space:]]*=[[:space:]]*//p')
+
+cat $INSTALL_ROOT/etc/os-release
+echo "SAILFISH_CUSTOMER=\"${CUSTOMERS//$'\n'/ }\""
+) > $IMG_OUT_DIR/os-release
+### end 50_os-release
+### begin 99_check_shadow
+IS_BAD=0
+
+echo "Checking that no user has password set in /etc/shadow."
+# This grep prints users that have password set, normally nothing
+if grep -vE '^[^:]+:[*!]{1,2}:' $INSTALL_ROOT/etc/shadow
+then
+ echo "A USER HAS PASSWORD SET! THE IMAGE IS NOT SAFE!"
+ IS_BAD=1
+fi
+
+# Checking that all users use shadow in passwd,
+# if they weren't the check above would be useless
+if grep -vE '^[^:]+:x:' $INSTALL_ROOT/etc/passwd
+then
+ echo "BAD PASSWORD IN /etc/passwd! THE IMAGE IS NOT SAFE!"
+ IS_BAD=1
+fi
+
+# Fail image build if checks fail
+[ $IS_BAD -eq 0 ] && echo "No passwords set, good." || exit 1
+### end 99_check_shadow
+%end
+
+%pack --erroronfail
+export SSU_RELEASE_TYPE=release
+### begin hybris
+pushd $IMG_OUT_DIR
+
+DEVICE=t0lte
+
+VERSION_FILE=./os-release
+source $VERSION_FILE
+
+# Locate rootfs tar.bz2 archive.
+for filename in *.tar.bz2; do
+ GEN_IMG_BASE=$(basename $filename .tar.bz2)
+done
+
+if [ ! -e "$GEN_IMG_BASE.tar.bz2" ]; then
+ echo "No rootfs archive found, exiting ..."
+ exit 1
+fi
+
+IMG_SIZE=$(du -h $GEN_IMG_BASE.tar.bz2 | cut -f1)
+
+# Output filenames
+DST_IMG_BASE=$ID-$DEVICE-$SAILFISH_FLAVOUR-$VERSION_ID@EXTRA_NAME@
+DST_IMG=$DST_IMG_BASE.tar.bz2
+
+# Copy boot image, updater scripts and updater binary into updater .zip tree.
+mkdir -p updater/META-INF/com/google/android
+
+mv update-binary updater/META-INF/com/google/android/update-binary
+mv hybris-updater-script updater/META-INF/com/google/android/updater-script
+mv hybris-updater-unpack.sh updater/updater-unpack.sh
+mv hybris-boot.img updater/hybris-boot.img
+
+# Temporarily move the rootfs into the updater directory
+mv $GEN_IMG_BASE.tar.bz2 updater/$DST_IMG
+
+# Update updater-script with image details.
+sed -i -e "s %VERSION% $VERSION_ID g" -e "s %IMAGE_FILE% $DST_IMG g" -e "s %IMAGE_SIZE% $IMG_SIZE g" updater/META-INF/com/google/android/updater-script
+
+# pack updater .zip
+pushd updater
+zip -r ../$DST_IMG_BASE.zip META-INF/com/google/android/update-binary META-INF/com/google/android/updater-script updater-unpack.sh hybris-boot.img $DST_IMG_BASE.ks $DST_IMG
+popd # updater
+
+# Move the rootfs back out of the updater directory
+mv updater/$DST_IMG $GEN_IMG_BASE.tar.bz2
+
+# Clean up updater .zip working directory.
+rm -rf updater
+
+popd # $IMG_OUT_DIR
+### end hybris
+%end
+
diff --git a/patterns/jolla-configuration-t0lte.yaml b/patterns/jolla-configuration-t0lte.yaml
@@ -2,5 +2,6 @@ Description: Pattern with packages for t0lte configurations
Name: jolla-configuration-t0lte
Requires:
- patterns-sailfish-device-configuration-t0lte
+- droid-hal-t0lte-detritus
Summary: Jolla Configuration t0lte
diff --git a/tmp/bluez4.files b/tmp/bluez4.files
@@ -0,0 +1,10 @@
+/etc/bluez4/bluetooth/serial.conf
+/etc/bluez4/bluetooth/rfcomm.conf
+/etc/bluez4/bluetooth/jolla.conf
+/etc/bluez4/bluetooth/audio.conf
+/etc/bluez4/bluetooth/main.conf
+/etc/bluez4/bluetooth/input.conf
+/etc/bluez4/bluetooth/network.conf
+/etc/pulse/bluez4_stream_restore.pa
+/etc/pulse/xpolicy.conf.d/bluez4.conf
+/etc/pulse/xpolicy.conf.d/bluez4_earpiece.conf
diff --git a/tmp/bluez5.files b/tmp/bluez5.files
@@ -0,0 +1,8 @@
+/etc/bluez5/bluetooth/jolla.conf
+/etc/bluez5/bluetooth/exclude.conf
+/etc/bluez5/bluetooth/main.conf
+/etc/bluez5/bluetooth/input.conf
+/etc/bluez5/bluetooth/network.conf
+/etc/pulse/bluez5_stream_restore.pa
+/etc/pulse/xpolicy.conf.d/bluez5_earpiece.conf
+/etc/pulse/xpolicy.conf.d/bluez5.conf
diff --git a/tmp/droid-config.files b/tmp/droid-config.files
@@ -0,0 +1,51 @@
+%defattr(-,root,root,-)
+/usr/lib/systemd/system/droid-late-start.service
+/usr/lib/systemd/system/graphical.target.wants/droid-late-start.service
+/usr/lib/systemd/system/graphical.target.wants/droid-hal-init.service
+/usr/lib/systemd/system/droid-hal-init.service
+/usr/lib/systemd/system/actdead.target.wants/droid-hal-init.service
+/usr/lib/tmpfiles.d/droid-hal.conf
+/usr/bin/droid/droid-load-firmware.sh
+/usr/bin/droid/droid-hal-shutdown.sh
+/usr/bin/droid/get_partition.sh
+/usr/bin/droid/droid-init-done.sh
+/usr/bin/droid/droid-hal-startup.sh
+/lib/udev/rules.d/997-droid-drm.rules
+/lib/udev/rules.d/998-droid-system.rules
+/etc/media_profiles.xml
+/etc/selinux/config
+/etc/sensorfw/primaryuse.conf
+/etc/audio_platform_info.xml
+/etc/xdg/QtProject/Sensors.conf
+/etc/xdg/QtProject/QPlatformTheme.conf
+/etc/xdg/QtProject/QtQuick2.conf
+/etc/media_codecs_google_telephony.xml
+/etc/lowi.conf
+/etc/xtra_root_cert.pem
+/etc/mixer_paths.xml
+/etc/sysctl.d/ipv6-settings.conf
+/etc/sysctl.d/ipv4-settings.conf
+/etc/media_codecs_google_audio.xml
+/etc/media_codecs_google_video.xml
+/etc/obexd/root
+/etc/obexd/opp.conf
+/etc/obexd/noplugins/mas
+/etc/obexd/noplugins/irmc
+/etc/obexd/noplugins/ftp
+/etc/obexd/noplugins/syncevolution
+/etc/obexd/excludes/bluetooth:pcsuite
+/etc/obexd/pbap.conf
+/etc/izat.conf
+/etc/usb-moded/dyn-modes/mtp_mode-droid.ini
+/etc/media_codecs_ffmpeg.xml
+/etc/modprobe.d/blacklist-evbug.conf
+/etc/media_codecs.xml
+/etc/media_codecs_performance.xml
+/etc/gps.conf
+/etc/acdbdata
+/etc/xtwifi.conf
+/etc/sap.conf
+/etc/sec_config
+/var/lib/environment/nemo/60-multimedia.conf
+/var/lib/environment/ofono/noplugin.conf
+/var/lib/environment/compositor/droid-hal-device.conf
diff --git a/tmp/flashing.files b/tmp/flashing.files
@@ -0,0 +1 @@
+/usr/sbin/flash-partition
diff --git a/tmp/kickstart-configuration.files b/tmp/kickstart-configuration.files
@@ -0,0 +1,2 @@
+/usr/share/ssu/kickstart/pack/t0lte/hybris
+/usr/share/ssu/kickstart/attachment/t0lte
diff --git a/tmp/policy-settings.files b/tmp/policy-settings.files
@@ -0,0 +1,5 @@
+/etc/ohm/ohmd.ini
+/etc/ohm/plugins.d/dbus_signal.ini
+/etc/ohm/modules.ini
+/etc/ohm/dbus_signal_conf.ini
+/etc/dbus-1/system.d/ohm-policy.conf
diff --git a/tmp/pulseaudio-settings.files b/tmp/pulseaudio-settings.files
@@ -0,0 +1,30 @@
+/etc/pulse/xpolicy.conf
+/etc/pulse/x-maemo-sink-volume.table
+/etc/pulse/x-maemo-route.table
+/etc/pulse/arm_droid_default.pa
+/etc/pulse/x-maemo-match.table
+/etc/pulse/mainvolume-listening-time-notifier.conf
+/etc/pulse/x-maemo-stream-restore.table
+/etc/pulse/xpolicy.conf.d/earpiece.conf
+/etc/pulse/xpolicy.conf.d/fmradio.conf.disabled
+/etc/pulse/xpolicy.conf.d/usbaudio.conf.disabled
+/etc/sysconfig/pulseaudio
+/var/lib/nemo-pulseaudio-parameters/modes/ihfandbtmono-hsp/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/btmono-hfp/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/ihfandheadset/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/lineout/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/hs/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/ihfandbtmono/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/btmono-hsp/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/ihfandlineout/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/hp/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/btmono/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/ihfandbtmono-hfp/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/usbaudio/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/ihf/mainvolume
+/var/lib/nemo-pulseaudio-parameters/modes/bta2dp/mainvolume
+/var/lib/nemo-pulseaudio-parameters/algs/mainvolume/lineout
+/var/lib/nemo-pulseaudio-parameters/algs/mainvolume/hp
+/var/lib/nemo-pulseaudio-parameters/algs/mainvolume/btmono
+/var/lib/nemo-pulseaudio-parameters/algs/mainvolume/ihf
+/var/lib/nemo-pulseaudio-parameters/algs/mainvolume/bta2dp
diff --git a/tmp/sailfish-settings.files b/tmp/sailfish-settings.files
@@ -0,0 +1,4 @@
+/etc/dconf/db/vendor.d/screen-rotation.txt
+/etc/dconf/db/vendor.d/locks/screen-rotation.txt
+/etc/dconf/db/vendor.d/locks/silica-configs.txt
+/etc/dconf/db/vendor.d/silica-configs.txt
diff --git a/tmp/ssu-kickstarts.files b/tmp/ssu-kickstarts.files
@@ -0,0 +1 @@
+/usr/share/kickstarts/Jolla-@RELEASE@-t0lte-@ARCH@.ks