GithubHelp home page GithubHelp logo

droid-hal-device's People

Contributors

0312birdzhang avatar abranson avatar andreysv avatar ballock avatar fredldotme avatar ibaranovomp avatar ilpianista avatar impegoraro avatar ix5 avatar jamikettunen avatar jusa avatar kimmoli avatar krnlyng avatar lbt avatar locusf avatar martinbrook avatar martyone avatar mkosola avatar mlehtima avatar neochapay avatar philippedeswert avatar piggz avatar plfiorini avatar saukko avatar siteshwar avatar sledges avatar stskeeps avatar thaodan avatar thp avatar wnt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

droid-hal-device's Issues

Strange behavior of "droidmedia-localbuild.spec" when try to build droidmedia

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.)

Replace `$ARCH` with `$PORT_ARCH`?

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?

makefstab should skip swap partitions

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.

apply-permissions build fails

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.