mer-hybris / droid-hal-device Goto Github PK
View Code? Open in Web Editor NEWPackaging for a hybris-HA
Packaging for a hybris-HA
On my port using hybris-15.1, the sensorfw doesn't work unless you built using the binder.
Should we build the binder if the branch is hybris-15.1?
Build log: http://termbin.com/6i3r
The problem is libsparse uses a GNU99 style typeof in its min macro, and it will cause it fail to compile if the compiler use standard C99.
I had a conversation with @krnlyng at #187. I'm afraid that I cannot help on solving this problem so I opened this issue.
File is only created when building for android7 so build fails when building for older versions.
makefstab creates invalid .mount files when it encounters a swap line in an fstab.
systemd handles swaps in .swap units, not .mount units. Example, on falcon, a none.mount file is created that tries to mount /dev/block/zram0, but cannot.
Build failed after another droid-hal sync. Port tree was totally reassembled for clearer results, but the error remained.
Log last parts is:
Processing files: droidmedia-0.20220929.0-1.armv7hl
error: File not found: /home/build/hadk/hybris/mw/droidmedia-localbuild/installroot/usr/libexec/droid-hybris/system/etc/init/hybris_extras.rc
error: More than one file on a line: /usr/libexec/droid-hybris/system/etc/init/servicemanager.rc
RPM build errors:
File not found: /home/build/hadk/hybris/mw/droidmedia-localbuild/installroot/usr/libexec/droid-hybris/system/etc/init/hybris_extras.rc
More than one file on a line: /usr/libexec/droid-hybris/system/etc/init/servicemanager.rc
After debugging it was found that the file "droidmedia-localbuild/file.list" is incorrect:
/usr/libexec/droid-hybris/system/lib/libdroidmedia.so
/usr/libexec/droid-hybris/system/lib/libminisf.so
/usr/libexec/droid-hybris/system/etc/init/hybris_extras.rc /usr/libexec/droid-hybris/system/etc/init/servicemanager.rc
As far as I understand, it should be similar to:
/usr/libexec/droid-hybris/system/lib/libdroidmedia.so
/usr/libexec/droid-hybris/system/lib/libminisf.so
/usr/libexec/droid-hybris/system/etc/init/minimediaservice.rc
/usr/libexec/droid-hybris/system/etc/init/minisfservice.rc
After several experiments, there was definitely a strange behavior of "match all" wildcard, and the explicit assignment seams to fix that.
Example:
if [ -d $RPM_BUILD_ROOT/%{_libexecdir}/droid-hybris/system/etc/init ]; then
echo %{_libexecdir}/droid-hybris/system/etc/init/minimediaservice.rc >> ${LIBDMSOLOC}
echo %{_libexecdir}/droid-hybris/system/etc/init/minisfservice.rc >> ${LIBDMSOLOC}
fi
So, the main question is: unexpected behavior (maybe related to 0d7298d) or build environment problems?
(A translator was used, so I hope you can understand that.)
HADK 1.1.2 says in chapter 4.1/page 11:
# ARCH conflicts with kernel build
export PORT_ARCH="armv7hl"
But the helper scripts in this repo make use of the $ARCH
env var.
Shouldn't the helper scripts in this repo be updated to use the same variable?
Build fails on hybris-13.0 branch.
Here's commit in aosp repository https://android.googlesource.com/platform/system/core/+/df33ffadd29ed02d87e87515626b673eac67f735
cc -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/home/yacuken/mer/android/droid/system/core/include/private/ -std=c99 apply-permissions.c -o apply-permissions
apply-permissions.c: In function 'apply_android_perms':
apply-permissions.c:105:5: warning: passing argument 3 of 'fs_config' from incompatible pointer type [enabled by default]
/home/yacuken/mer/android/droid/system/core/include/private/android_filesystem_config.h:227:6: note: expected 'const char *' but argument is of type 'unsigned int *'
apply-permissions.c:105:5: warning: passing argument 6 of 'fs_config' from incompatible pointer type [enabled by default]
/home/yacuken/mer/android/droid/system/core/include/private/android_filesystem_config.h:227:6: note: expected 'unsigned int *' but argument is of type 'uint64_t *'
apply-permissions.c:105:5: error: too few arguments to function 'fs_config'
/home/yacuken/mer/android/droid/system/core/include/private/android_filesystem_config.h:227:6: note: declared here
apply-permissions.c:117:9: warning: implicit declaration of function 'strerror' [-Wimplicit-function-declaration]
apply-permissions.c:117:9: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat]
apply-permissions.c:126:9: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat]
apply-permissions.c: In function 'main':
apply-permissions.c:160:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
apply-permissions.c:175:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
apply-permissions.c:175:33: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
apply-permissions.c:178:9: warning: implicit declaration of function 'strrchr' [-Wimplicit-function-declaration]
apply-permissions.c:178:16: warning: incompatible implicit declaration of built-in function 'strrchr' [enabled by default]
make: *** [apply-permissions] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.