Re: [android-building] Need help exposing library / class paths in AOSP P (Android 9) from my own .jar file inside vendor

2019-04-15 Thread 'Colin Cross' via Android Building
You can set PRODUCT_BOOT_JARS in your product makefile to add a jar to the bootclasspath, but I'd suggest providing it as a library that the apps that need it can load. On Mon, Apr 15, 2019 at 8:06 AM Elliott Mazzuca wrote: > I tried to give a specific title and i will elaborate a bit more: > >

Re: [android-building] Need help exposing library / class paths in AOSP P (Android 9) from my own .jar file inside vendor

2019-04-15 Thread 'Colin Cross' via Android Building
PRODUCT_BOOT_JARS can't be set in your Android.mk, it has to be set in your product makefiles that are selected by your lunch target. On Mon, Apr 15, 2019 at 11:20 AM Elliott Mazzuca wrote: > Thaks for the fast reply Colin! > > I tried adding the suggested change into my local Android.mk file

Re: [android-building] How to do a make clean for a single module

2019-04-17 Thread 'Colin Cross' via Android Building
Try rm -rf out/soong/.intermediates// On Wed, Apr 17, 2019 at 10:05 PM Peter Stephens wrote: > I need to clean out my module so that I can do static analysis on the > code. The analysis too needs to "observe" a build for my module. How is > this achieved with the new (soong) build system? > >

Re: [android-building] Re: Why did you name it Soong, Kati, Ninja ?

2019-05-15 Thread 'Colin Cross' via Android Building
Soong is from Noonian Soong , who built Androids. I don't remember what Kati means, it's not Star Trek related (the project predates Soong), I think it's a play on words in Japanese. On Wed, May 15, 2019 at 11:41 AM 'Glenn Kasten' via Android

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-05-14 Thread 'Colin Cross' via Android Building
You can probably use something like: java_import { name: "mylibrary-jar", jars: ["mylibrary.jar"], } java_library { name: "mylibrary", static_libs: ["mylibrary-jar"], installable: true, } On Mon, May 13, 2019 at 6:36 PM Vinayak Soni wrote: > Classes. > > On Tuesday, May 7,

Re: [android-building] avbtool: command not found

2019-05-08 Thread 'Colin Cross' via Android Building
Did you run source build/envsetup.sh and lunch as described at https://source.android.com/setup/build/building? On Wed, May 8, 2019 at 9:02 AM Michael Burrows wrote: > Hey guys. My computer with ubuntu crashed which resulted in me not being > able to run avbtool command > > I have my AOSP

Re: [android-building] Add prebuilt jar to system image - android 9.0

2019-05-07 Thread 'Colin Cross' via Android Building
What is in the jar, class files or dex files? On Tue, May 7, 2019 at 12:42 PM Vinayak Soni wrote: > Hi Colin, > > How to write an Android.bp for a prebuilt jar that needs to be added to > PRODUCT_BOOT_JARS? > > Thanks, > Vinayak > > On Monday, March 18, 2019 at 3:36:17 PM UTC-7, Colin Cross

Re: [android-building] android.jar does not contain all the class files?

2019-05-03 Thread 'Colin Cross' via Android Building
android.jar only contains classes that are part of the public SDK. You can see the AOSP source for UiAutomationConnection.java at https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/UiAutomationConnection.java

Re: [android-building] Building an old specific commit in one AOSP project

2019-07-01 Thread 'Colin Cross' via Android Building
That change likely arrived in AOSP as part of the lollipop release drop, so there are no more fine-grained builds available. On Mon, Jul 1, 2019 at 8:05 AM Alex wrote: > This idea is great but it works only if the project has been built by the > CI with head the targeted commit. > However, in

Re: [android-building] Re: Build on master branch: failed to find module "fizz-buzz" variant "linux_glibc_x86_64_dylib"

2019-09-03 Thread 'Colin Cross' via Android Building
Thanks for the reports, this should be fixed by https://android-review.googlesource.com/c/platform/build/soong/+/1113046. On Tue, Sep 3, 2019 at 7:03 AM 张光刘 wrote: > me too... > /Volumes/Aosp  make -j12 > > PLATFORM_VERSION_CODENAME=R >

Re: [android-building] Not booting after adding app to priv-app

2019-09-09 Thread 'Colin Cross' via Android Building
It's hard to tell without logs (you can get adb access for early crashes like this by pre-installing an ADB public key using PRODUCT_ADB_KEYS), but my guess is you need to add something to

Re: [android-building] Android.bp files for interlinked subdirectories

2019-08-08 Thread 'Colin Cross' via Android Building
Each module should have export_include_dirs: ["inc"], and then anything that links against it will get those headers. On Thu, Aug 8, 2019 at 9:50 AM Mohammed Shakir wrote: > Hi Sir/Madam, > > I am working on a project where multiple interlinked modules are present. > I am trying to make it

Re: [android-building] Adding HIDL service to vendor with prebuilt libraries (Android P)

2019-08-08 Thread 'Colin Cross' via Android Building
Likely libTest.so is built incorrectly and xxx.hardware.test@1.0-service is ending up with an incorrect DT_NEEDED entry. Can you show the output of objdump -x lib/libTest.so and objdump -x $OUT/vendor/bin/hw/xxx.hardware.test@1.0-service? My guess is that SONAME in libTest.so is

Re: [android-building] Building an old specific commit in one AOSP project

2019-06-28 Thread 'Colin Cross' via Android Building
You can download the manifest_*.xml file from any build from the date that you want, then use repo sync -m /tmp/manifest_*.xml to sync the revisions from that manifest. On Fri, Jun 28, 2019 at 7:56 AM Alex wrote: > Hi folks, > > I did not find any related post to my question so I decided to

Re: [android-building] Lots of 'Disallowed PATH tool "manpath"...' when building Android Q

2019-11-18 Thread 'Colin Cross' via Android Building
I was able to reproduce this on Fedora 30, it's something to do with the environment BASH_ENV=/usr/share/Modules/init/bash, which is causing arbitrary bash code that can use any binary to be run on every non-interactive bash shell startup. On Mon, Nov 18, 2019 at 9:50 AM Michael Goffioul wrote:

Re: [android-building] Unable to download content during build

2019-10-16 Thread 'Colin Cross' via Android Building
Network connections are blocked using nsjail by default, as they break build hermeticity. https://android.googlesource.com/platform/build/soong/+/master/ui/build/sandbox_linux.go#161 is where it is enforced, you can disable it by setting BUILD_BROKEN_USES_NETWORK := true in your BoardConfig.mk.

Re: [android-building] Benchmarktest64 directory

2019-10-15 Thread 'Colin Cross' via Android Building
That's not surprising, none of our internal workflows involve flashing the built userdata.img, as that would effectively wipe all the data on the device. We always use adb push (that's what the atest tool does) or adb sync to run tests and benchmarks. I think a patch to update fs_config would be

Re: [android-building] Benchmarktest64 directory

2019-10-14 Thread 'Colin Cross' via Android Building
How are you getting the benchmarks on to the device? In my testing (`m libjavacore-benchmarks`, `adb sync data` they are marked executable. On Fri, Oct 11, 2019 at 10:49 AM Paul Elliott wrote: > Hi Colin, > > The curious bit is that even as root I am having to change the tests > inside

Re: [android-building] OpenJDK 8 or OpenJDK 9 for AOSP 10: which one?

2019-10-24 Thread 'Colin Cross' via Android Building
The source for Android 10 includes prebuilt java toolchains used for compiling the platform in prebuilts/jdk/jdk8 and prebuilts/jdk/jdk9, so there should be no need to provide any OpenJDK version. The platform always uses javac from OpenJDK9 to compile (prebuilts/jdk/jdk9/linux-x86/bin/javac),

Re: [android-building] Build error: There is insufficient memory for the Java Runtime Environment to continue.

2019-10-18 Thread 'Colin Cross' via Android Building
You'll need to pass a lower -j value to m. The parallelism selection only takes the number of CPUs into account, and not the total memory. This is something we are looking to improve on. On Fri, Oct 18, 2019 at 8:46 AM Zelong wrote: >

Re: [android-building] OpenJDK 8 or OpenJDK 9 for AOSP 10: which one?

2019-10-25 Thread 'Colin Cross' via Android Building
Correction, EXPERIMENTAL_JAVA_LANUAGE_LEVEL_9=true is the default in master, and is moving to required with https://android-review.googlesource.com/c/platform/build/soong/+/1151196. On Thu, Oct 24, 2019 at 3:32 PM Colin Cross wrote: > The source for Android 10 includes prebuilt java toolchains

Re: [android-building] cant build aosp src (oreo 8.1.0 r3), always fails (tried different targets)

2019-11-20 Thread 'Colin Cross' via Android Building
See https://groups.google.com/g/android-building/c/0kzPnw3akxg On Wed, Nov 20, 2019 at 4:07 PM Eliane Fonseca wrote: > when building aosp android-8.1.0_r3 always fails, trying to build with > emulator on a low-spec pc (and i have installed all required components per > the android compiling

Re: [android-building] Benchmarktest64 directory

2019-10-10 Thread 'Colin Cross' via Android Building
Likely an oversight. It has been this way for benchmarks defined in Make since 2016. Maybe the benchmark test runners are running as root? On Thu, Oct 10, 2019 at 10:22 AM Paul Elliott wrote: > Hi all, > > Prior to android 9, all benchmarks and test suites were generally built > into

Re: [android-building] Android.bp to support architectural files

2019-10-09 Thread 'Colin Cross' via Android Building
Use a single module, and put the differences into multilib lib32/lib64 clauses: multilib: { lib32: { srcs: ["foo32.c"], }, lib64: { srcs: ["foo32.c"], }, }, On Wed, Oct 9, 2019 at 1:09 PM REGURI AKANKSHA wrote: > Suppose say a module has name - x and

Re: [android-building] Android.bp accessibility

2019-10-04 Thread 'Colin Cross' via Android Building
Soong cannot access variables defined in Make. For variables defined in Android.bp files this is documented at https://android.googlesource.com/platform/build/soong/+/master/README.md#variables : "Variables are scoped to the remainder of the file they are declared in, as well as any child

Re: [android-building] Error when building android 9 source (ubuntu 18.04)

2019-12-18 Thread 'Colin Cross' via Android Building
Signal 4 is SIGILL, meaning the binary contained an illegal instruction. Parts of the ART build assume that the host CPU supports at least SSE4.2 and POPCNT ( https://cs.android.com/android/platform/superproject/+/master:art/build/Android.bp;l=188). What CPU are you building on? On Wed, Dec 18,

Re: [android-building] Generate external/llvm Intrinsics.gen and Attributes.inc on android10

2020-03-02 Thread 'Colin Cross' via Android Building
Those files are generated by the llvm_tblgen modules in external/llvm/Android.bp. You'll find their outputs at: out/soong/.intermediates/external/llvm/llvm-gen-attributes/gen/llvm/IR/Attributes.inc out/soong/.intermediates/external/llvm/llvm-gen-intrinsics/gen/llvm/IR/Intrinsics.gen As a hack

Re: [android-building] “compatibility.mk” in aosp of vts building means

2020-01-16 Thread 'Colin Cross' via Android Building
COMPATIBILITY.* variables are set here: https://cs.android.com/android/platform/superproject/+/master:build/make/core/definitions.mk;l=2899?q=file:build%2Fmake%20COMPATIBILITY%5C . You normally add modules to android-vts.zip by setting LOCAL_TEST_SUITES := vts in an Android.mk file or test_suites:

Re: [android-building] mm including n number of files

2020-01-06 Thread 'Colin Cross' via Android Building
In Q and earlier, `mm` builds and installs the modules in the current directory and usually subdirectories, but does not build or install dependencies outside the current directory, but `mma` will build and install modules in the current directory and their dependencies. In AOSP master `mm` is an

Re: [android-building] make android images Bad page map in process soong_build

2020-05-14 Thread 'Colin Cross' via Android Building
This looks like a similar issue we saw in 2017 on build servers running kernel 3.13.0, we haven't seen it recently. Try updating your kernel. On Thu, May 14, 2020 at 7:56 PM Minghui Ma wrote: > hi all > i make android images on ubuntu but sometimes the server hang, I found > the log from

Re: [android-building] how to debug soong?

2020-08-06 Thread 'Colin Cross' via Android Building
See https://android.googlesource.com/platform/build/soong/+/master/README.md#running-soong-in-a-debugger On Thu, Aug 6, 2020 at 6:14 PM Chen Wang wrote: > hello, > I want to setup env to debug soong code to see what is happening when > runSoong. Is there any guide/manual on how to setup this?

Re: [android-building] how to build Android.bp Build Docs?

2020-08-07 Thread 'Colin Cross' via Android Building
You can see the latest version from AOSP master at https://ci.android.com/builds/latest/branches/aosp-build-tools/targets/linux/view/soong_build.html, or if you've completed a build locally the docs should be at $OUT_DIR/soong/docs/soong_build.html. On Fri, Aug 7, 2020 at 9:28 AM Chen Wang