PlatformSDK [koza@surfacelg hadk]$ rpm/dhd/helpers/build_packages.sh --droid-hal
* Building rpm/droid-hal-s2.spec
++ cd /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/lib/systemd/system
++ echo config.mount mnt-vendor-persist.mount persist.mount system.mount system_root.mount vendor-dsp.mount vendor-firmware_mnt.mount
+ echo 'config.mount mnt-vendor-persist.mount persist.mount system.mount system_root.mount vendor-dsp.mount vendor-firmware_mnt.mount'
+ install -D tmp/units/all-units.txt /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/lib/droid/all-units.txt
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/meego/brp-compress
+ /usr/lib/rpm/meego/brp-strip /bin/true
+ /usr/lib/rpm/meego/brp-strip-static-archive /bin/true
+ /usr/lib/rpm/meego/brp-strip-comment-note /bin/true /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile '%{__python3}'
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/meego/find-docs.sh /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot
+ /usr/lib/rpm/meego/brp-java-repack-jars
+ /usr/lib/rpm/brp-remove-la-files
Processing files: droid-hal-s2-0.0.6-202509141542.aarch64
error: File not found: /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/default.prop
RPM build errors:
File not found: /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/default.prop
* Check /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/droid-hal-s2.log for full log.
!! building of package failed
droid-hal-s2.log:
Directory walk started
Directory walk done - 0 packages
Temporary output repo path: /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir/.repodata/
Preparing sqlite DBs
Pool started (with 5 workers)
Pool finished
Entering 'no-gpg-checks' mode.
Entering non-interactive mode.
Verbosity: 2
Non-option program arguments: 'oneshot' 'pkgconfig(systemd)' 'pkgconfig(zlib)' 'qt5-qttools-kmap2qmap >= 5.1.0+git5' 'rsync'
Initializing Target
Checking whether to refresh metadata for dir:/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir
Retrieving repository 'dir:/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir' metadata [.
Warning: Accepting an unsigned file 'repomd.xml' from repository 'dir:/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir'.
done]
Building repository 'dir:/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir' cache [....done]
Loading repository data...
Reading installed packages...
'qt5-qttools-kmap2qmap >= 5.1.0+git5' is already installed.
No update candidate for 'qt5-qttools-kmap2qmap-5.6.3+git2-1.6.4.jolla.aarch64'. The highest available version is already installed.
'oneshot' is already installed.
No update candidate for 'oneshot-0.6.12-1.6.2.jolla.noarch'. The highest available version is already installed.
'pkgconfig(zlib)' not found in package names. Trying capabilities.
'zlib-devel' providing 'pkgconfig(zlib)' is already installed.
'pkgconfig(systemd)' not found in package names. Trying capabilities.
'systemd-devel' providing 'pkgconfig(systemd)' is already installed.
'rsync' is already installed.
No update candidate for 'rsync-3.2.7+git1-1.6.3.jolla.aarch64'. The highest available version is already installed.
Resolving package dependencies...
Force resolution: No
Nothing to do.
Entering 'no-gpg-checks' mode.
Entering non-interactive mode.
Verbosity: 2
Initializing Target
Checking whether to refresh metadata for dir:/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir
Retrieving repository 'dir:/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir' metadata [.
Warning: Accepting an unsigned file 'repomd.xml' from repository 'dir:/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir'.
done]
Building repository 'dir:/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/.mb2/filtered-output-dir' cache [...done]
Loading repository data...
Reading installed packages...
Computing distribution upgrade...
Force resolution: No
Nothing to do.
Building target platforms: aarch64-meego-linux-gnu
Building for target aarch64-meego-linux-gnu
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.1utwCB
+ umask 022
+ cd /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -march=armv8-a'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -march=armv8-a'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -march=armv8-a -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ LD_AS_NEEDED=1
+ export LD_AS_NEEDED
+ echo _target_cpu is aarch64
_target_cpu is aarch64
+ rm -rf tmp
+ mkdir tmp
+ echo Verifying kernel config
Verifying kernel config
+ hybris/mer-kernel-check/mer_verify_kernel_config ./out/target/product/s2/obj/KERNEL_OBJ/.config
WARNING: CONFIG_NETFILTER_XT_NAT is invalid
It is unset
Allowed values : y, m, !
Comment says: Enable netfilter DNAT and SNAT targets.
WARNING: CONFIG_CUSE is invalid
It is unset
Allowed values : y, !, >=2.6
Comment says: CUSE (optional): Required for software security modules support.
WARNING: CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE is invalid
Value is: 1
Allowed values : 0, !
Comment says: Alternative way to disable SELinux at boottime
WARNING: CONFIG_CGROUP_PERF is invalid
It is unset
Allowed values : y, !
Comment says: systemd (optional): https://github.com/systemd/systemd/blob/v238/README
WARNING: CONFIG_HIDRAW is invalid
It is unset
Allowed values : y, m, !
Comment says: optional: Support HID devices
WARNING: CONFIG_RTC_DRV_CMOS is invalid
It is unset
Allowed values : y, !
Comment says: optional, but highly recommended, not available on arm64
WARNING: CONFIG_CPUSETS is invalid
It is unset
Allowed values : y, m, !
Comment says: lxc (optional): required to run lxc containers
WARNING: CONFIG_ECRYPT_FS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional extra filesystem (ecryptfs)
WARNING: CONFIG_LBDAF is invalid
It is unset
Allowed values : y, !
Comment says: ext4 filesystem requires this in order to support filesysetms with huge_file feature, which is enabled by default by mke2fs.ext4, not needed for 64bit architectures
WARNING: CONFIG_NETFILTER_XT_MATCH_DCCP is invalid
It is unset
Allowed values : y, m, !
Comment says: connman: for iptables dccp match
WARNING: CONFIG_BTRFS_FS is invalid
It is unset
Allowed values : y, !
Comment says: optional extra filesystem (BTRFS)
WARNING: CONFIG_NET_CLS_CGROUP is invalid
It is unset
Allowed values : y, !
Comment says: systemd (optional): https://github.com/systemd/systemd/blob/v238/README
WARNING: CONFIG_FW_LOADER_USER_HELPER_FALLBACK is invalid
It is unset
Allowed values : y, !
Comment says: optional, for droid firmware load helper
WARNING: CONFIG_CIFS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional extra filesystem (CIFS - Windows net fs)
WARNING: CONFIG_WATCHDOG_NOWAYOUT is invalid
It is unset
Allowed values : y, !
Comment says: If device uses watchdogs with dsme (https://github.com/sailfishos/dsme), this option should be enabled or watchdog does not protect the device in case dsme crashes.
WARNING: CONFIG_CGROUP_MEM_RES_CTLR is invalid
It is unset
Allowed values : y, !, <=3.5
Comment says: systemd (optional): https://github.com/systemd/systemd/blob/v238/README, only valid if kernel version <= 3.5
WARNING: CONFIG_UDF_FS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional extra filesystem (DVD & portable USB)
WARNING: CONFIG_CGROUP_MEM_RES_CTLR_SWAP is invalid
It is unset
Allowed values : y, !, <=3.5
Comment says: systemd (optional): https://github.com/systemd/systemd/blob/v238/README, only valid if kernel version <= 3.5
WARNING: CONFIG_CGROUP_MEM_RES_CTLR_KMEM is invalid
It is unset
Allowed values : y, !, <=3.5
Comment says: systemd (optional): https://github.com/systemd/systemd/blob/v238/README, only valid if kernel version <= 3.5
WARNING: CONFIG_ISO9660_FS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional extra filesystem (CD-ROM)
WARNING: CONFIG_AUTOFS4_FS is invalid
It is unset
Allowed values : y, m, !
Comment says: systemd (optional): http://cgit.freedesktop.org/systemd/systemd/commit/README?id=713bc0cfa477ca1df8769041cb3dbc83c10eace2
+ '[' -f ./build/release/build_flags.scl ']'
++ awk '/PLATFORM_VERSION([A-Z0-9.]*|_LAST_STABLE) := ([0-9.]+)/ { print $3; }'
++ awk -F. '{print $1}'
+ android_version_major=10
++ readlink -e .
+ ANDROID_ROOT=/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk
+ echo Building local tools
Building local tools
+ '[' 10 -ge 8 ']'
+ /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/build/make/tools/fs_config/fs_config_generator.py aidarray /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/system/core/libcutils/include/private/android_filesystem_config.h
+ '[' -f rpm/helpers/mkbootimg.mk ']'
+ '[' 10 -lt 7 ']'
+ '[' -f rpm/helpers/simg2img.mk ']'
+ '[' -f rpm/helpers/img2simg.mk ']'
+ '[' 10 -ge 13 ']'
+ '[' 10 -ge 8 ']'
+ echo '#include <cstring>'
+ echo '#include "sparse_read.cpp"'
+ IMG2SIMG_SOURCES='backed_block.c output_file.c sparse.c sparse_crc32.c sparse_err.c sparse_read_fix.cpp img2simg.c ../base/stringprintf.cpp'
+ SIMG2IMG_SOURCES='backed_block.c output_file.c sparse.c sparse_crc32.c sparse_err.c sparse_read_fix.cpp simg2img.c ../base/stringprintf.cpp'
+ pushd rpm/dhd/helpers
/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/rpm/dhd/helpers /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk
+ make ANDROID_ROOT=/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk 'IMG2SIMG_SOURCES=backed_block.c output_file.c sparse.c sparse_crc32.c sparse_err.c sparse_read_fix.cpp img2simg.c ../base/stringprintf.cpp' 'SIMG2IMG_SOURCES=backed_block.c output_file.c sparse.c sparse_crc32.c sparse_err.c sparse_read_fix.cpp simg2img.c ../base/stringprintf.cpp'
make -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/rpm/dhd/helpers/img2simg.mk -C /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/system/core/libsparse/
make[1]: Entering directory '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/system/core/libsparse'
g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -march=armv8-a -std=gnu++14 -Iinclude -I../base/include -I../../libbase/include -c -o sparse_read_fix.o sparse_read_fix.cpp
g++ -o img2simg -Iinclude -I../base/include -I../../libbase/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -march=armv8-a -std=gnu++14 backed_block.o output_file.o sparse.o sparse_crc32.o sparse_err.o sparse_read_fix.o img2simg.o ../base/stringprintf.o -lz
make[1]: Leaving directory '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/system/core/libsparse'
make -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/rpm/dhd/helpers/simg2img.mk -C /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/system/core/libsparse/
make[1]: Entering directory '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/system/core/libsparse'
g++ -o simg2img -Iinclude -I../base/include -I../../libbase/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -march=armv8-a -std=gnu++14 backed_block.o output_file.o sparse.o sparse_crc32.o sparse_err.o sparse_read_fix.o simg2img.o ../base/stringprintf.o -lz
make[1]: Leaving directory '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/system/core/libsparse'
+ popd
/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk
+ echo Building uid scripts
Building uid scripts
+ rpm/dhd/helpers/usergroupgen
+ echo Building udev rules
Building udev rules
+ mkdir tmp/udev.rules
++ find ./out/target/product/s2/system ./out/target/product/s2/root ./out/target/product/s2/vendor -name ueventd.rc -o -name 'ueventd.*.rc' -a '!' -name '*.goldfish.rc'
find: ‘./out/target/product/s2/vendor’: No such file or directory
+ rpm/dhd/helpers/makeudev ./out/target/product/s2/system/vendor/ueventd.rc
WARNING Rule not converted: firmware_directories /vendor/firmware_mnt/image/
+ echo Building mount units
Building mount units
+ mkdir tmp/units
+ shopt -s nullglob
++ echo ./out/target/product/s2/root/init.rc ./out/target/product/s2/system/vendor/etc/fstab.qcom
+ fstab_files='./out/target/product/s2/root/init.rc ./out/target/product/s2/system/vendor/etc/fstab.qcom'
+ shopt -u nullglob
+ rpm/dhd/helpers/makefstab --files ./out/target/product/s2/root/init.rc ./out/target/product/s2/system/vendor/etc/fstab.qcom --skip auto none /acct /boot /cache /data /data/user/0 /data_mirror /data_mirror/data_ce/null /data_mirror/data_de/null /data_mirror/cur_profiles /misc /recovery /staging /storage /storage/sdcard1 /storage/usbdisk /storage/usbotg /sys/fs/bpf /sys/fs/cgroup /sys/fs/cgroup/memory /sys/fs/fuse/connections /sys/fs/pstore /sys/kernel/debug /sys/kernel/config /sys/kernel/tracing /dev/cpuctl /dev/cpuset /dev/stune /dev/usb-ffs/adb /tmp --outputdir tmp/units
Wrote config.unit
Wrote system_root.unit
Wrote system.unit
Wrote system.unit
Wrote mnt-vendor-persist.unit
Wrote vendor-firmware_mnt.unit
Wrote vendor-dsp.unit
Wrote persist.unit
+ echo Fixing up mount points
Fixing up mount points
+ hybris/hybris-boot/fixup-mountpoints s2 tmp/units/config.mount tmp/units/mnt-vendor-persist.mount tmp/units/persist.mount tmp/units/system.mount tmp/units/system_root.mount tmp/units/vendor-dsp.mount tmp/units/vendor-firmware_mnt.mount
Fixing mount-points for device s2
+ echo Creating hw-release
Creating hw-release
+ cat
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.F6dokz
+ umask 022
+ cd /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk
+ flock /home/koza/.mb2.lock.lock flock /home/koza/.mb2.lock ln -f /home/koza/.mb2.lock.V7P /home/koza/.mb2.lock
+ '[' /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot '!=' / ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot
++ dirname /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk
+ mkdir /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -f ./build/release/build_flags.scl ']'
++ awk '/PLATFORM_VERSION([A-Z0-9.]*|_LAST_STABLE) := ([0-9.]+)/ { print $3; }'
++ awk -F. '{print $1}'
+ android_version_major=10
++ cat tmp/units/all-units.txt
cat: tmp/units/all-units.txt: No such file or directory
+ echo install
install
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/lib-dev-alog/
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/lib64-dev-alog/
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/lib/systemd/system
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/udev/rules.d
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/etc/udev/rules.d
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//etc/os-release.d
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/lib/droid
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/bin/droid
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/img
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules
+ '[' 10 -ge 11 ']'
+ mkbootimg_dir=core
+ '[' -e ./system/core/mkbootimg/mkbootimg.py ']'
+ _mkbootimg=mkbootimg.py
+ install -m 755 -D ./system/core/mkbootimg/mkbootimg.py /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/bin/mkbootimg
+ '[' 10 -ge 13 ']'
+ echo ''
+ install -m 755 -D ./system/core/libsparse/simg2img /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/bin/
+ install -m 755 -D ./system/core/libsparse/img2simg /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/bin/
+ cp -a ./out/target/product/s2/system/bin/updater /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot/update-binary
+ cp -a ./out/target/product/s2/hybris-updater-script /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot
+ cp -a ./out/target/product/s2/hybris-updater-unpack.sh /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot
+ rsync -av ./out/target/product/s2/root/. /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot --exclude bin --exclude etc --exclude 'init.zygote*'
sending incremental file list
./
init -> /system/bin/init
init.rc
sent 34,298 bytes received 41 bytes 22,892.67 bytes/sec
total size is 34,152 speedup is 0.99
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/sbin/modprobe
+ '[' 10 -ge 10 ']'
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/init
+ cp -a ./out/target/product/s2/system/bin/init /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/
+ sed -i -e '/^[[:space:]]*mount[[:space:]]/s/^/# Removed during droid-hal-device build : /' /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/init.rc
+ sed -i -e '/^[[:space:]]*mkdir[[:space:]]\/tmp[[:space:]]*/s/^/# Removed during droid-hal-device build : /' /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/init.rc
+ '[' 10 -ge 7 ']'
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/etc/init
+ cp -a ./out/target/product/s2/system/etc/init/servicemanager.rc /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/etc/init/
+ echo '/usr/libexec/droid-hybris/system/etc/init/*.rc'
+ '[' 10 -ge 11 ']'
+ '[' 10 -ge 12 ']'
+ '[' -f ./out/target/product/s2/system/etc/init/hybris_extras.rc ']'
+ cp -a ./out/target/product/s2/system/etc/init/hybris_extras.rc /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/etc/init/
+ '[' 10 -lt 13 ']'
+ echo /default.prop
+ cp -a ./out/target/product/s2/system/bin ./out/target/product/s2/system/lib /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/.
+ cp -a ./out/target/product/s2/system/lib64 /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/.
+ '[' 10 -ge 10 ']'
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/apex
+ echo '%dir /apex'
+ '[' 10 -ge 14 ']'
+ art_path=./out/soong/.intermediates/art/build
+ apex_path=apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex
+ '[' '!' -f ./out/soong/.intermediates/art/build/apex/com.android.runtime.release/android_common_com.android.runtime.release/image.apex/lib/bionic/libc.so ']'
+ art_path=./out/target/product/s2/system
+ apex_path=apex/com.android.runtime.release
+ '[' '!' -f ./out/target/product/s2/system/apex/com.android.runtime.release/lib/bionic/libc.so ']'
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib/libdl.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib/libdl_android.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib/libc.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib/libm.so
+ cp -a ./out/target/product/s2/system/apex/com.android.runtime.release/lib/bionic/libdl.so ./out/target/product/s2/system/apex/com.android.runtime.release/lib/bionic/libdl_android.so ./out/target/product/s2/system/apex/com.android.runtime.release/lib/bionic/libc.so ./out/target/product/s2/system/apex/com.android.runtime.release/lib/bionic/libm.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib64/libdl.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib64/libdl_android.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib64/libc.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib64/libm.so
+ cp -a ./out/target/product/s2/system/apex/com.android.runtime.release/lib64/bionic/libdl.so ./out/target/product/s2/system/apex/com.android.runtime.release/lib64/bionic/libdl_android.so ./out/target/product/s2/system/apex/com.android.runtime.release/lib64/bionic/libc.so ./out/target/product/s2/system/apex/com.android.runtime.release/lib64/bionic/libm.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib64
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib/modules
+ cp -a ./out/target/product/s2/obj/include /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/
+ rm -rf '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/lib/*.so.toc'
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib/libaudioflingerglue.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib64/libaudioflingerglue.so
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/bin/miniafservice
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib/libdroidmedia.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib64/libdroidmedia.so
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib/libminisf.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/lib64/libminisf.so
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/bin/minimediaservice
+ rm -f /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/system/bin/minisfservice
+ hdrs=/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers
+ echo 'Extracting headers for hybris'
Extracting headers for hybris
+ rpm/dhd/helpers/extract-headers.sh -p /usr/include/droid-devel/droid-headers . /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/
cp: -r not specified; omitting directory './system/media/audio/include/system/audio_effects'
+ '[' -d ./rpm/header_patches ']'
+ echo Making new /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/android-config.h
Making new /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/android-config.h
++ sed -n '/CONFIG GOES HERE/=' /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/android-config.h
+ token_line=24
+ sed '24,$ d' /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/android-config.h
+ cat
+ grep -q '^TARGET_USES_QCOM_BSP := true' ./device/leeco/s2/BoardConfig.mk
+ '[' 10 -ge 5 ']'
+ grep -q '^BOARD_USES_QCOM_HARDWARE := true' ./device/leeco/s2/BoardConfig.mk
+ echo Found QCOM_BSP
Found QCOM_BSP
+ cat
+ '[' 10 -ge 13 ']'
+ sed '1,24 d' /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/android-config.h
+ mv /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/android-config.h.new /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/android-config.h
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/lib64/pkgconfig/
+ mv /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/include/droid-devel/droid-headers/android-headers.pc /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/lib64/pkgconfig/
+ ln -s ../system/lib/liblog.so ../system/lib/libcutils.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/lib-dev-alog/.
+ ln -s ../system/lib64/liblog.so ../system/lib64/libcutils.so /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/libexec/droid-hybris/lib64-dev-alog/.
+ cp -a tmp/units/config.mount tmp/units/mnt-vendor-persist.mount tmp/units/persist.mount tmp/units/system.mount tmp/units/system_root.mount tmp/units/vendor-dsp.mount tmp/units/vendor-firmware_mnt.mount /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/lib/systemd/system
+ cp -a tmp/udev.rules/999-android-system.rules /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/udev/rules.d/
+ ln -s /dev/null /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/etc/udev/rules.d/60-persistent-v4l.rules
+ init_script=./hybris/hybris-boot/init-script
+ '[' -f ./hybris/hybris-boot/init-script ']'
+ cp -a ./hybris/hybris-boot/init-script /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/init-debug
+ install -D rpm/dhd/helpers/droid.ids /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/lib/droid/droid.ids
+ _remove_cruft '/fstab.*' '/*goldfish*' /proc /sys /dev /sepolicy /file_contexts /seapp_contexts /charger /res /data /odm /sbin/mkdosfs
+ '[' 13 -gt 0 ']'
+ rm -rf '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/fstab.*'
+ shift
+ '[' 12 -gt 0 ']'
+ rm -rf '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/*goldfish*'
+ shift
+ '[' 11 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/proc
+ shift
+ '[' 10 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/sys
+ shift
+ '[' 9 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/dev
+ shift
+ '[' 8 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/sepolicy
+ shift
+ '[' 7 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/file_contexts
+ shift
+ '[' 6 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/seapp_contexts
+ shift
+ '[' 5 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/charger
+ shift
+ '[' 4 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/res
+ shift
+ '[' 3 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/data
+ shift
+ '[' 2 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/odm
+ shift
+ '[' 1 -gt 0 ']'
+ rm -rf /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/sbin/mkdosfs
+ shift
+ '[' 0 -gt 0 ']'
+ '[' 10 -lt 7 ']'
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/data
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/sbin
+ mv /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/init /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/sbin/droid-hal-init
++ find /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/sbin/ -type l
+ cp tmp/hw-release /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/include/droid-devel/hw-release.vars
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot//usr/lib/droid/hw-group.d
+ cat
+ cat
+ '[' 10 -ge 5 ']'
+ grep -q '^CONFIG_ANDROID_PARANOID_NETWORK=y' ./out/target/product/s2/obj/KERNEL_OBJ/.config
+ echo inet
+ '[' -n '' ']'
+ '[' -n '' ']'
++ sort -u out/target/product/s2/obj/KERNEL_OBJ/include/config/kernel.release
+ kernel_release=3.10.108-lineageos-g52c42c85259-dirty
+ cp out/target/product/s2/kernel /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot/kernel-3.10.108-lineageos-g52c42c85259-dirty
+ cp out/target/product/s2/obj/ROOT/hybris-boot_intermediates/boot-initramfs.gz /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot/
+ echo /boot/kernel-3.10.108-lineageos-g52c42c85259-dirty
+ echo /boot/boot-initramfs.gz
+ cp out/target/product/s2/dt.img /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot/
+ cp out/target/product/s2/dtb.img /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot/
+ touch dtbo.files
+ cp out/target/product/s2/dtbo.img /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot/dtbo.img
+ touch boot.files
+ mod_dir=/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty
+ mkdir -p /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty
+ cp -a out/target/product/s2/system/lib/modules/. /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty/.
cp: cannot stat 'out/target/product/s2/system/lib/modules/.': No such file or directory
+ true
+ cp -a out/target/product/s2/system/vendor/lib/modules/. /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty/.
+ cp -a out/target/product/s2/vendor/lib/modules/. /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty/.
cp: cannot stat 'out/target/product/s2/vendor/lib/modules/.': No such file or directory
+ true
+ cp -a out/target/product/s2/vendor_dlkm/lib/modules/. /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty/.
cp: cannot stat 'out/target/product/s2/vendor_dlkm/lib/modules/.': No such file or directory
+ true
+ cp -a out/target/product/s2/obj/KERNEL_OBJ/modules.builtin /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty/.
+ cp -a out/target/product/s2/obj/KERNEL_OBJ/modules.order /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty/.
+ mv /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty
mv: cannot move '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty' to a subdirectory of itself, '/parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/lib/modules/3.10.108-lineageos-g52c42c85259-dirty/3.10.108-lineageos-g52c42c85259-dirty'
+ true
+ cp out/target/product/s2/hybris-boot.img /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot/
+ cp out/target/product/s2/hybris-recovery.img /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/boot/
++ cd /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/lib/systemd/system
++ echo config.mount mnt-vendor-persist.mount persist.mount system.mount system_root.mount vendor-dsp.mount vendor-firmware_mnt.mount
+ echo 'config.mount mnt-vendor-persist.mount persist.mount system.mount system_root.mount vendor-dsp.mount vendor-firmware_mnt.mount'
+ install -D tmp/units/all-units.txt /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/usr/lib/droid/all-units.txt
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/meego/brp-compress
+ /usr/lib/rpm/meego/brp-strip /bin/true
+ /usr/lib/rpm/meego/brp-strip-static-archive /bin/true
+ /usr/lib/rpm/meego/brp-strip-comment-note /bin/true /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile '%{__python3}'
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/meego/find-docs.sh /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot
+ /usr/lib/rpm/meego/brp-java-repack-jars
+ /usr/lib/rpm/brp-remove-la-files
Processing files: droid-hal-s2-0.0.6-202509141542.aarch64
error: File not found: /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/default.prop
RPM build errors:
File not found: /parentroot/mnt/wwn-0x5000c5007cfdf6ed-part1/hadk/installroot/default.prop