Skip to content

Instantly share code, notes, and snippets.

@benclarkk
Created September 29, 2019 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benclarkk/d0dbfbe1b0d67fcf02e797169c185cb5 to your computer and use it in GitHub Desktop.
Save benclarkk/d0dbfbe1b0d67fcf02e797169c185cb5 to your computer and use it in GitHub Desktop.
Building target platforms: armv7hl-meego-linux
Building for target armv7hl-meego-linux
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Px5QMY
+ umask 022
+ cd /home/benclark/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 -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb -Wno-psabi -I/usr/lib/gfortran/modules'
+ export FFLAGS
+ LD_AS_NEEDED=1
+ export LD_AS_NEEDED
+ echo _target_cpu is armv7hl
_target_cpu is armv7hl
+ grep -q '^TARGET_ARCH := arm64' ./device/motorola/falcon/BoardConfig.mk ./device/motorola/msm8226-common/BoardConfigCommon.mk
+ rm -rf tmp
+ mkdir tmp
+ echo Verifying kernel config
Verifying kernel config
+ hybris/mer-kernel-check/mer_verify_kernel_config ./out/target/product/falcon/obj/KERNEL_OBJ/.config
WARNING: CONFIG_BTRFS_FS is invalid
It is unset
Allowed values : y, !
Comment says: optional extra filesystem (BTRFS)
WARNING: CONFIG_NFS_ACL_SUPPORT is invalid
It is unset
Allowed values : y, m, !
Comment says: optional, for NFS support
WARNING: CONFIG_SECURITY_YAMA is invalid
It is unset
Allowed values : y, !
Comment says: optional, prevents user's processes from ptracing each other
WARNING: CONFIG_NFS_V3 is invalid
It is unset
Allowed values : y, !
Comment says: optional, for NFS support
WARNING: CONFIG_NFS_V4_1 is invalid
It is unset
Allowed values : y, !
Comment says: optional, for NFS support
WARNING: CONFIG_SUNRPC_GSS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional, for NFS support
WARNING: CONFIG_SECURITY_SELINUX_BOOTPARAM is invalid
It is unset
Allowed values : y, !
Comment says: Required by hybris, SELinux needs to be disabled. Leave as not set, if you have unset AUDIT (read more about the CONFIG_AUDIT flag)
WARNING: CONFIG_NFS_FS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional, for NFS support
WARNING: CONFIG_CIFS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional extra filesystem (CIFS - Windows net fs)
WARNING: CONFIG_NFS_V4 is invalid
It is unset
Allowed values : y, !
Comment says: optional, for NFS support
WARNING: CONFIG_WATCHDOG_NOWAYOUT is invalid
It is unset
Allowed values : y, !
Comment says: If device uses watchdogs with dsme (https://github.com/nemomobile/dsme), this option should be enabled or watchdog does not protect the device in case dsme crashes.
WARNING: CONFIG_PID_NS is invalid
It is unset
Allowed values : y, !
Comment says: optional, enables kernel namespaces for systemd-nspawn containers
WARNING: CONFIG_ANDROID_LOW_MEMORY_KILLER is invalid
It is unset
Allowed values : y, !
Comment says: Helping memory handling at least with Android runtime (tested on Jolla C)
WARNING: CONFIG_BLK_DEV_NBD is invalid
It is unset
Allowed values : y, m, !
Comment says: optional, for NFS & CIFS support
WARNING: CONFIG_IPC_NS is invalid
It is unset
Allowed values : y, !
Comment says: optional, enables kernel namespaces for systemd-nspawn containers
WARNING: CONFIG_UDF_FS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional extra filesystem (DVD & portable USB)
WARNING: CONFIG_NFS_USE_KERNEL_DNS is invalid
It is unset
Allowed values : y, !
Comment says: optional, for NFS support
WARNING: CONFIG_ISO9660_FS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional extra filesystem (CD-ROM)
WARNING: CONFIG_LOCKD_V4 is invalid
It is unset
Allowed values : y, !
Comment says: optional, for NFS support
WARNING: CONFIG_NFS_COMMON is invalid
It is unset
Allowed values : y, !
Comment says: optional, for NFS support
WARNING: CONFIG_SECURITY_YAMA_STACKED is invalid
It is unset
Allowed values : y, !, <4.3
Comment says: optional, only valid for kernel < 4.3
WARNING: CONFIG_NFS_V3_ACL is invalid
It is unset
Allowed values : y, !
Comment says: optional, for NFS support
WARNING: CONFIG_LOCKD is invalid
It is unset
Allowed values : y, m, !
Comment says: optional, for NFS support
WARNING: CONFIG_UTS_NS is invalid
It is unset
Allowed values : y, !
Comment says: optional, enables kernel namespaces for systemd-nspawn containers
WARNING: CONFIG_ECRYPT_FS is invalid
It is unset
Allowed values : y, m, !
Comment says: optional extra filesystem (ecryptfs)
WARNING: CONFIG_SUNRPC is invalid
It is unset
Allowed values : y, m, !
Comment says: optional, for NFS support
+ test -f rpm/helpers/mkbootimg.mk
+ test -f rpm/helpers/simg2img.mk
+ test -f rpm/helpers/img2simg.mk
+ echo Building local tools
Building local tools
++ readlink -e .
+ ANDROID_ROOT=/home/benclark/hadk
+ cd rpm/dhd/helpers
+ make ANDROID_ROOT=/home/benclark/hadk
make -f /home/benclark/hadk/rpm/dhd/helpers/mkbootimg.mk -C /home/benclark/hadk/system/core/mkbootimg/
make[1]: Entering directory '/home/benclark/hadk/system/core/mkbootimg'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/benclark/hadk/system/core/mkbootimg'
make -f /home/benclark/hadk/rpm/dhd/helpers/img2simg.mk -C /home/benclark/hadk/system/core/libsparse/
make[1]: Entering directory '/home/benclark/hadk/system/core/libsparse'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/benclark/hadk/system/core/libsparse'
make -f /home/benclark/hadk/rpm/dhd/helpers/simg2img.mk -C /home/benclark/hadk/system/core/libsparse/
make[1]: Entering directory '/home/benclark/hadk/system/core/libsparse'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/benclark/hadk/system/core/libsparse'
+ echo Building uid scripts
Building uid scripts
+ rpm/dhd/helpers/usergroupgen add
+ rpm/dhd/helpers/usergroupgen remove
+ echo Building udev rules
Building udev rules
+ mkdir tmp/udev.rules
++ grep -v .goldfish.rc
++ ls ./out/target/product/falcon/root/ueventd.qcom.rc
+ rpm/dhd/helpers/makeudev ./out/target/product/falcon/root/ueventd.rc ./out/target/product/falcon/root/ueventd.qcom.rc
WARNING Rule not converted: subsystem adf
WARNING Rule not converted: devname uevent_devname
+ echo Building mount units
Building mount units
+ mkdir tmp/units
+ shopt -s nullglob
++ echo ./out/target/product/falcon/root/fstab.qcom ./out/target/product/falcon/root/init.cm.rc ./out/target/product/falcon/root/init.environ.rc ./out/target/product/falcon/root/init.qcom.rc ./out/target/product/falcon/root/init.qcom.usb.rc ./out/target/product/falcon/root/init.rc ./out/target/product/falcon/root/init.recovery.qcom.rc ./out/target/product/falcon/root/init.target.rc ./out/target/product/falcon/root/init.trace.rc ./out/target/product/falcon/root/init.usb.rc ./out/target/product/falcon/root/init.zygote32.rc ./out/target/product/falcon/root/ueventd.qcom.rc ./out/target/product/falcon/root/ueventd.rc
+ FSTAB_FILES='./out/target/product/falcon/root/fstab.qcom ./out/target/product/falcon/root/init.cm.rc ./out/target/product/falcon/root/init.environ.rc ./out/target/product/falcon/root/init.qcom.rc ./out/target/product/falcon/root/init.qcom.usb.rc ./out/target/product/falcon/root/init.rc ./out/target/product/falcon/root/init.recovery.qcom.rc ./out/target/product/falcon/root/init.target.rc ./out/target/product/falcon/root/init.trace.rc ./out/target/product/falcon/root/init.usb.rc ./out/target/product/falcon/root/init.zygote32.rc ./out/target/product/falcon/root/ueventd.qcom.rc ./out/target/product/falcon/root/ueventd.rc'
+ shopt -u nullglob
+ rpm/dhd/helpers/makefstab --files ./out/target/product/falcon/root/fstab.qcom ./out/target/product/falcon/root/init.cm.rc ./out/target/product/falcon/root/init.environ.rc ./out/target/product/falcon/root/init.qcom.rc ./out/target/product/falcon/root/init.qcom.usb.rc ./out/target/product/falcon/root/init.rc ./out/target/product/falcon/root/init.recovery.qcom.rc ./out/target/product/falcon/root/init.target.rc ./out/target/product/falcon/root/init.trace.rc ./out/target/product/falcon/root/init.usb.rc ./out/target/product/falcon/root/init.zygote32.rc ./out/target/product/falcon/root/ueventd.qcom.rc ./out/target/product/falcon/root/ueventd.rc --skip auto /acct /boot /cache /data /misc /recovery /staging /storage/usbdisk /sys/fs/cgroup /sys/fs/cgroup/memory /sys/kernel/debug /sys/kernel/config /dev/usb-ffs/adb /tmp --outputdir tmp/units
Wrote system.unit
Wrote fsg.unit
Wrote firmware.unit
Wrote persist.unit
Wrote none.unit
Wrote sys-fs-cgroup-bfqio.unit
Wrote system.unit
Wrote mnt-asec.unit
Wrote mnt-obb.unit
Wrote sys-fs-pstore.unit
+ echo Fixing up mount points
Fixing up mount points
+ hybris/hybris-boot/fixup-mountpoints falcon tmp/units/firmware.mount tmp/units/fsg.mount tmp/units/mnt-asec.mount tmp/units/mnt-obb.mount tmp/units/none.mount tmp/units/persist.mount tmp/units/sys-fs-cgroup-bfqio.mount tmp/units/sys-fs-pstore.mount tmp/units/system.mount
Fixing mount-points for device falcon
+ echo Creating hw-release
Creating hw-release
+ cat
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.alCqe3
+ umask 022
+ cd /home/benclark/hadk
+ '[' /home/benclark/hadk/installroot '!=' / ']'
+ rm -rf /home/benclark/hadk/installroot
++ dirname /home/benclark/hadk/installroot
+ mkdir -p /home/benclark/hadk
+ mkdir /home/benclark/hadk/installroot
+ LANG=C
+ export LANG
+ unset DISPLAY
++ cat tmp/units/all-units.txt
cat: tmp/units/all-units.txt: No such file or directory
+ echo install
install
+ rm -rf /home/benclark/hadk/installroot
+ mkdir -p /home/benclark/hadk/installroot/usr/libexec/droid-hybris/lib-dev-alog/
+ mkdir -p /home/benclark/hadk/installroot/usr/libexec/droid-hybris/system
+ mkdir -p /home/benclark/hadk/installroot/usr/lib/droid
+ mkdir -p /home/benclark/hadk/installroot/usr/lib/droid-devel/
+ mkdir -p /home/benclark/hadk/installroot/lib/systemd/system
+ mkdir -p /home/benclark/hadk/installroot/lib/udev/rules.d
+ mkdir -p /home/benclark/hadk/installroot/etc/udev/rules.d
+ mkdir -p /home/benclark/hadk/installroot//etc/os-release.d
+ mkdir -p /home/benclark/hadk/installroot/usr/lib/modules/
+ mkdir -p /home/benclark/hadk/installroot/usr/lib/droid
+ mkdir -p /home/benclark/hadk/installroot//usr/bin/droid
+ mkdir -p /home/benclark/hadk/installroot/img
+ mkdir -p /home/benclark/hadk/installroot/boot
+ mkdir -p /home/benclark/hadk/installroot/lib/modules
+ install -m 755 -D ./system/core/mkbootimg/mkbootimg /home/benclark/hadk/installroot//usr/bin/
+ install -m 755 -D ./system/core/libsparse/simg2img /home/benclark/hadk/installroot//usr/bin/
+ install -m 755 -D ./system/core/libsparse/img2simg /home/benclark/hadk/installroot//usr/bin/
+ cp -a ./out/target/product/falcon/system/bin/updater /home/benclark/hadk/installroot/boot/update-binary
+ cp -a ./out/target/product/falcon/hybris-updater-script /home/benclark/hadk/installroot/boot
+ cp -a ./out/target/product/falcon/hybris-updater-unpack.sh /home/benclark/hadk/installroot/boot
+ cp -a ./out/target/product/falcon/root/. /home/benclark/hadk/installroot/
+ rm -f /home/benclark/hadk/installroot/sbin/modprobe
+ sed -i -e '/^[[:space:]]*mount[[:space:]]/s/^/# Removed during droid-hal-device build : /' /home/benclark/hadk/installroot/init.cm.rc /home/benclark/hadk/installroot/init.environ.rc /home/benclark/hadk/installroot/init.qcom.rc /home/benclark/hadk/installroot/init.qcom.usb.rc /home/benclark/hadk/installroot/init.rc /home/benclark/hadk/installroot/init.recovery.qcom.rc /home/benclark/hadk/installroot/init.target.rc /home/benclark/hadk/installroot/init.trace.rc /home/benclark/hadk/installroot/init.usb.rc /home/benclark/hadk/installroot/init.zygote32.rc /home/benclark/hadk/installroot/ueventd.qcom.rc /home/benclark/hadk/installroot/ueventd.rc
+ sed -i -e '/^[[:space:]]*mkdir[[:space:]]\/tmp[[:space:]]*/s/^/# Removed during droid-hal-device build : /' /home/benclark/hadk/installroot/init.cm.rc /home/benclark/hadk/installroot/init.environ.rc /home/benclark/hadk/installroot/init.qcom.rc /home/benclark/hadk/installroot/init.qcom.usb.rc /home/benclark/hadk/installroot/init.rc /home/benclark/hadk/installroot/init.recovery.qcom.rc /home/benclark/hadk/installroot/init.target.rc /home/benclark/hadk/installroot/init.trace.rc /home/benclark/hadk/installroot/init.usb.rc /home/benclark/hadk/installroot/init.zygote32.rc /home/benclark/hadk/installroot/ueventd.qcom.rc /home/benclark/hadk/installroot/ueventd.rc
+ cp -a ./out/target/product/falcon/system/bin ./out/target/product/falcon/system/lib /home/benclark/hadk/installroot/usr/libexec/droid-hybris/system/.
+ rm -rf /home/benclark/hadk/installroot/usr/libexec/droid-hybris/system/lib/modules
+ cp -a ./out/target/product/falcon/obj/lib ./out/target/product/falcon/obj/include /home/benclark/hadk/installroot/usr/lib/droid-devel/
+ cp -a ./out/target/product/falcon/symbols /home/benclark/hadk/installroot/usr/lib/droid-devel/
+ HDRS=/home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers
+ mkdir -p /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers
+ echo 'Extracting headers for hybris'
Extracting headers for hybris
+ rpm/dhd/helpers/extract-headers.sh -p /usr/lib/droid-devel/droid-headers . /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers/
+ test -d ./rpm/header_patches
+ echo Making new /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers/android-config.h
Making new /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers/android-config.h
+ sed '/CONFIG GOES HERE/,$d' /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers/android-config.h
+ cat
+ grep -q '^TARGET_USES_QCOM_BSP := true' ./device/motorola/falcon/BoardConfig.mk ./device/motorola/msm8226-common/BoardConfigCommon.mk
+ grep -q 'PLATFORM_VERSION := 5.' ./build/core/version_defaults.mk
+ grep -q '^BOARD_USES_QCOM_HARDWARE := true' ./device/motorola/falcon/BoardConfig.mk ./device/motorola/msm8226-common/BoardConfigCommon.mk
+ echo Found QCOM_BSP
Found QCOM_BSP
+ cat
+ sed '0,/CONFIG GOES HERE/d' /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers/android-config.h
+ mv /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers/android-config.h.new /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers/android-config.h
+ mkdir -p /home/benclark/hadk/installroot/usr/lib/pkgconfig/
+ mv /home/benclark/hadk/installroot/usr/lib/droid-devel/droid-headers/android-headers.pc /home/benclark/hadk/installroot/usr/lib/pkgconfig/
+ ln -s ../system/lib/liblog.so ../system/lib/libcutils.so /home/benclark/hadk/installroot/usr/libexec/droid-hybris/lib-dev-alog/.
+ cp -a tmp/units/firmware.mount tmp/units/fsg.mount tmp/units/mnt-asec.mount tmp/units/mnt-obb.mount tmp/units/none.mount tmp/units/persist.mount tmp/units/sys-fs-cgroup-bfqio.mount tmp/units/sys-fs-pstore.mount tmp/units/system.mount /home/benclark/hadk/installroot//lib/systemd/system
+ cp -a tmp/udev.rules/999-android-system.rules /home/benclark/hadk/installroot/lib/udev/rules.d/
+ ln -s /dev/null /home/benclark/hadk/installroot/etc/udev/rules.d/60-persistent-v4l.rules
+ cp -a ./hybris/hybris-boot/init-script /home/benclark/hadk/installroot/init-debug
+ install -D rpm/dhd/helpers/droid-user-add.sh /home/benclark/hadk/installroot/usr/lib/droid/droid-user-add.sh
+ install -D rpm/dhd/helpers/droid-user-remove.sh /home/benclark/hadk/installroot/usr/lib/droid/droid-user-remove.sh
+ rm -f /home/benclark/hadk/installroot/fstab.qcom
+ rm -f '/home/benclark/hadk/installroot/*goldfish*'
+ rm -rf /home/benclark/hadk/installroot/proc /home/benclark/hadk/installroot/sys /home/benclark/hadk/installroot/dev /home/benclark/hadk/installroot/sepolicy /home/benclark/hadk/installroot/file_contexts /home/benclark/hadk/installroot/property_contexts /home/benclark/hadk/installroot/seapp_contexts
+ rm -rf /home/benclark/hadk/installroot/charger /home/benclark/hadk/installroot/res /home/benclark/hadk/installroot/data
+ mkdir -p /home/benclark/hadk/installroot/sbin
+ mv /home/benclark/hadk/installroot/init /home/benclark/hadk/installroot/sbin/droid-hal-init
+ find /home/benclark/hadk/installroot/sbin/ -lname ../init -execdir echo rm '{}' ';' -execdir echo 'ln -s' ./droid-hal-init '{}' ';'
find: unrecognized: -lname
BusyBox v1.29.3 (2019-07-11 20:13:51 UTC) multi-call binary.
Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS]
Search for files and perform actions on them.
First failed action stops processing of current file.
Defaults: PATH is current directory, action is '-print'
-L,-follow Follow symlinks
-H ...on command line only
-xdev Don't descend directories on other filesystems
-maxdepth N Descend at most N levels. -maxdepth 0 applies
actions to command line arguments only
-mindepth N Don't act on first N levels
-depth Act on directory *after* traversing it
Actions:
( ACTIONS ) Group actions for -o / -a
! ACT Invert ACT's success/failure
ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2
ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2
Note: -a has higher priority than -o
-name PATTERN Match file name (w/o directory name) to PATTERN
-iname PATTERN Case insensitive -name
-path PATTERN Match path to PATTERN
-ipath PATTERN Case insensitive -path
-regex PATTERN Match path to regex PATTERN
-type X File type is X (one of: f,d,l,b,c,s,p)
-perm MASK At least one mask bit (+MASK), all bits (-MASK),
or exactly MASK bits are set in file's mode
-mtime DAYS mtime is greater than (+N), less than (-N),
or exactly N days in the past
-mmin MINS mtime is greater than (+N), less than (-N),
or exactly N minutes in the past
-newer FILE mtime is more recent than FILE's
-inum N File has inode number N
-user NAME/ID File is owned by given user
-group NAME/ID File is owned by given group
-size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
+/-N: file size is bigger/smaller than N
-links N Number of links is greater than (+N), less than (-N),
or exactly N
-prune If current file is directory, don't descend into it
If none of the following actions is specified, -print is assumed
-print Print file name
-print0 Print file name, NUL terminated
-exec CMD ARG ; Run CMD with all instances of {} replaced by
file name. Fails if CMD exits with nonzero
-exec CMD ARG + Run CMD with {} replaced by list of file names
-delete Delete current file/directory. Turns on -depth option
error: Bad exit status from /var/tmp/rpm-tmp.alCqe3 (%install)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.alCqe3 (%install)
PlatformSDK [benclark@jeffstation hadk]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment