[Q] Just started building AOSP... A little help... - Nexus 5 Q&A, Help & Troubleshooting

Hey guys. I have a few questions about building AOSP. I have just started "ROM developing" if you want to call it, and need help. First off, how do I change the Device Name, Model Number, etc. in the AOSP source code? I am not using a kitchen to do this, as I am building 5.0. Also, how do I make a flashable zip instead if fastboot flashable .img's. And last question: how do I include pre-built apps (APKs) into a build? Thanks!

1st - iirc, this can be done with build prop overrides. 2nd - 'make otapackage'. 3rd, argh, can't remember.
Sent from my Nexus 5 using Tapatalk

More help...
The first time I ran make with otapackage, it made a zip file, that I'm assuming was flashable. I also downloaded a SlimRom zip to compare them. I noticed that in the SlimROM Zip, it has a system folder, not .img files. This allows for greater control of what is on the ROM I think, such as editing build.prop. How do I implement this into my flashable zip? So essentialy, I would like my flashable zip to have a /system folder, not system.img , patch, dat , etc. Thanks!

When I build slim, i use "make bacon" (or rather "mka bacon")
Have a look on their github at how their make files etc work.
I've rebuilt my system from scratch so I can't really figure it out for you. I need to get it back into a build environment first.

rootSU said:
When I build slim, i use "make bacon" (or rather "mka bacon")
Have a look on their github at how their make files etc work.
I've rebuilt my system from scratch so I can't really figure it out for you. I need to get it back into a build environment first.
Click to expand...
Click to collapse
Thanks for replying. I'll have a look.

Code:
including ./vendor/qcom/hammerhead/proprietary/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml ignored.
build/core/Makefile:33: warning: overriding commands for target `out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/Makefile:33: warning: overriding commands for target `out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:33: warning: overriding commands for target `out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/Makefile:33: warning: overriding commands for target `out/target/product/hammerhead/system/lib/libloc_eng.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/hammerhead/system/lib/libloc_eng.so'
find: `bootable/recovery/res': No such file or directory
No private recovery resources for TARGET_DEVICE hammerhead
----- Making recovery filesystem ------
build/tools/generate-notice-files.py out/target/product/hammerhead/obj/NOTICE.txt out/target/product/hammerhead/obj/NOTICE.html "Notices for files contained in the filesystem images in this directory:" out/target/product/hammerhead/obj/NOTICE_FILES/src
make: *** No rule to make target `out/host/linux-x86/bin/unpackbootimg', needed by `out/target/product/hammerhead/aosp_hammerhead-ota-eng.austin.zip'. Stop.
make: *** Waiting for unfinished jobs....
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat ‘out/target/product/hammerhead/root/init.recovery.*.rc’: No such file or directory
make: [out/target/product/hammerhead/recovery/root.ts] Error 1 (ignored)
rm -f /init.*.rc
mkdir -p out/target/product/hammerhead/recovery/root/system/bin
cp: cannot stat ‘bootable/recovery/res’: No such file or directory
make: *** [out/target/product/hammerhead/recovery/root.ts] Error 1
Combining NOTICE files into HTML
Combining NOTICE files into text
#### make failed to build some targets (38 seconds) ####
This happened after using SlimRoms makefile instead of aosp. I still have AOSP's back uped though.

Yeah you won't be able to use it. You should be able to look at it and work out what it does though.

Thanks again for helping me, never had a bad experience on XDA. I am a big noob at this, but during a quick skimdown of the Slim Makefile, I found this:
Code:
bacon: otapackage
ifneq ($(TARGET_CUSTOM_RELEASETOOL),)
@echo -e ${CL_YLW}"Running custom releasetool..."${CL_RST}
$(hide) OTAPACKAGE=$(INTERNAL_OTA_PACKAGE_TARGET) APKCERTS=$(APKCERTS_FILE) $(TARGET_CUSTOM_RELEASETOOL)
else
@echo -e ${CL_YLW}"Running releasetool..."${CL_RST}
$(hide) OTAPACKAGE=$(INTERNAL_OTA_PACKAGE_TARGET) APKCERTS=$(APKCERTS_FILE) ./vendor/slim/tools/squisher
endif
Could this mean something? I'm not sure.

Related

{CyanogenMod} Karbonn A9+ (Compiling Errors and solutions)

Please post your errors here. We (I and other esteemed devs) will try to solve them.
reserved for future.
reserved for future. 2222
reserved for future. another one...
By chrgegdoc
Code:
Before I get that error, I encountered these first:
building with
Code:
make -j4
gives me the following error:
Code:
make: *** No rule to make target `device/karbonn/a9plus/prebuilt/system/lib/lib/system/libcamera_client.so', needed by `out/target/product/a9plus/system/lib/libcamera_client.so'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: external/icu4c/common/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libicuuc.so.txt
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
retyping
Code:
make
without
Code:
-j4
"solves" that but I encounter the following error:
Code:
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:135: error: Resource does not already exist in overlay at 'config_tether_upstream_regexs'; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:136: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:137: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:149: error: Resource at config_tether_dun_required appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
So I deleted the overlay folder from device/karbonn/a9plus and it would go through until I get the error at my previous PM
Another one by chrgegdoc
checked out your new device tree and tried building from it using
Code:
make
I get the following error:
Code:
Code:
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
By the way, I am building CM9, haven't tried CM10 though.
arunmcops said:
Another one by chrgegdoc
checked out your new device tree and tried building from it using
Code:
make
I get the following error:
Code:
Code:
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
By the way, I am building CM9, haven't tried CM10 though.
Click to expand...
Click to collapse
Try to start with make -j1
arunmcops said:
Another one by chrgegdoc
checked out your new device tree and tried building from it using
Code:
make
I get the following error:
Code:
Code:
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
By the way, I am building CM9, haven't tried CM10 though.
Click to expand...
Click to collapse
arunmcops said:
By chrgegdoc
Code:
Before I get that error, I encountered these first:
building with
Code:
make -j4
gives me the following error:
Code:
make: *** No rule to make target `device/karbonn/a9plus/prebuilt/system/lib/lib/system/libcamera_client.so', needed by `out/target/product/a9plus/system/lib/libcamera_client.so'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: external/icu4c/common/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libicuuc.so.txt
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
retyping
Code:
make
without
Code:
-j4
"solves" that but I encounter the following error:
Code:
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:135: error: Resource does not already exist in overlay at 'config_tether_upstream_regexs'; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:136: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:137: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:149: error: Resource at config_tether_dun_required appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
So I deleted the overlay folder from device/karbonn/a9plus and it would go through until I get the error at my previous PM
Click to expand...
Click to collapse
Overlay packages changed...
I incorporated your changes and it seems that error is gone while using
Code:
make -j1
However, I encountered an new error
Code:
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:199: error: Resource at config_networkLocationProviderPackageName appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:202: error: Resource at config_geocodeProviderPackageName appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
EDIT:
So I tried deleting line 199 and 202 from the config.xml at the build went through.
But, I encountered the previous error
Code:
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/power/power.c
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
I don't know if they are connected with each other. I conclude that building with make -j1 doesn't solve the EOF error.
Compile Error
I also confirm the same error...
build with make -j1
Code:
<command-line>: warning: "REFRESH_RATE" redefined
<command-line>: warning: this is the location of the previous definition
system/core/libpixelflinger/codeflinger/disassem.c:710: warning: initialization from incompatible pointer type
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/power/power.c
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
I used a different device tree (my own) and now I am getting this error:
Code:
make: *** No rule to make target `vendor/qcom/s100/proprietary/lib/libaudioalsa.so', needed by `out/target/product/s100/obj/lib/libaudioalsa.so'. Stop.
What I did is add some lines in device.mk and it seems to compile (hopefully)
EDIT:
Still getting the same error. I have no idea on how to fix this
Plz post ur device tree ...
Sent from my Karbonn A9+ using Tapatalk HD
chrgegdoc said:
I used a different device tree (my own) and now I am getting this error:
Code:
make: *** No rule to make target `vendor/qcom/s100/proprietary/lib/libaudioalsa.so', needed by `out/target/product/s100/obj/lib/libaudioalsa.so'. Stop.
What I did is add some lines in device.mk and it seems to compile (hopefully)
EDIT:
Still getting the same error. I have no idea on how to fix this
Click to expand...
Click to collapse
U need to copy proprietary files of your device to vendor/qcom/s100 by either running command from your device folder or just download the files and put it to vendor/qcom/s100 .
Edit : I think this is the files u need . confirm that is it the one and if that is the one CD to vendor/qcom dir and issue following command
Code:
git clone https://github.com/liquid-moto/android_vendor_qcom_proprietary s100
It will clone those files to vendor/qcom/
Than go to vendor/qcom/s100 and rename system to proprietary and than start the build....
Hope u got it fixed
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Use libaudioalsa.so from /system/lib and modify mk files. Also mail me device folder.
Sent from my Karbonn A9+ using Tapatalk HD
Will Try
Arun will you modify your device tree.. I will try to compile again..
Will try for qcom/s100 also.. Both are same build.. Any way.. Device can be changed on .prop later..!!
---------- Post added at 07:04 PM ---------- Previous post was at 06:56 PM ----------
chrgegdoc said:
I used a different device tree (my own) and now I am getting this error:
Code:
make: *** No rule to make target `vendor/qcom/s100/proprietary/lib/libaudioalsa.so', needed by `out/target/product/s100/obj/lib/libaudioalsa.so'. Stop.
What I did is add some lines in device.mk and it seems to compile (hopefully)
EDIT:
Still getting the same error. I have no idea on how to fix this
Click to expand...
Click to collapse
Will share your device tree..??
I'll post my device tree after I try x10forevers' suggestion.
UPDATE:
So I tried x10forevers' suggestion. I modified proprietary-files.txt and extracted the files. However, some files were not found, namely:
Code:
libmm-color-convertor.so
libmmparser_divxdrmlib.so
a225_pfp.fw
a225_pm4.fw
a225p5_pm4.fw
a300_pfp.fw
a300_pm4.fw
leia_pfp_470.fw
leia_pm4_470.fw
libC2D2.so
UPDATE1:
what should be the value for TARGET_ARCH_VARIANT?
UPDATE 2:
arunmcops, you might want to edit out the '6' from your device.mk
See this line:
Code:
frameworks/base/data/etc/android.soft6ware.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
Prince.Paul.K said:
Arun will you modify your device tree.. I will try to compile again..
Will try for qcom/s100 also.. Both are same build.. Any way.. Device can be changed on .prop later..!!
---------- Post added at 07:04 PM ---------- Previous post was at 06:56 PM ----------
Will share your device tree..??
Click to expand...
Click to collapse
GITHUB
Your github id ?
chrgegdoc said:
I'll post my device tree after I try x10forevers' suggestion.
UPDATE:
So I tried x10forevers' suggestion. I modified proprietary-files.txt and extracted the files. However, some files were not found, namely:
Code:
libmm-color-convertor.so
libmmparser_divxdrmlib.so
a225_pfp.fw
a225_pm4.fw
a225p5_pm4.fw
a300_pfp.fw
a300_pm4.fw
leia_pfp_470.fw
leia_pm4_470.fw
libC2D2.so
UPDATE1:
what should be the value for TARGET_ARCH_VARIANT?
UPDATE 2:
arunmcops, you might want to edit out the '6' from your device.mk
See this line:
Code:
frameworks/base/data/etc/android.soft6ware.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
Click to expand...
Click to collapse
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_ARCH_VARIANT_CPU := cortex-a5
TARGET_ARCH_VARIANT_FPU := neon
@Chargegdoc
I think that fw files are in the clone files I have told you in earlier post
Check it
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Here is my GitHub
Please check for errors. I just copied all the folders from karbonna9plus and made a few changes.
EDIT:
@x10forevers
Indeed it is there.
I got another error:
Code:
make: *** No rule to make target `device/qcom/s100/prebuilt/system/etc/vold.fstab_use_tflashvold.fstab_use_emmc', needed by `out/target/product/s100/system/etc/vold.fstab_use_tflash'. Stop.
Edited the device.mk and changed the following lines:
Code:
device/qcom/s100/prebuilt/system/etc/vold.fstab_use_tflashvold.fstab_use_emmc:system/etc/vold.fstab_use_tflash
to
Code:
device/qcom/s100/prebuilt/system/etc/vold.fstab_use_tflash:system/etc/vold.fstab_use_tflash
I'll sleep for now and continue working on this the next day.
---------- Post added at 01:23 AM ---------- Previous post was at 12:50 AM ----------
There's a LOT of make: *** No rule to make target errors. I'll try to fix these tomorrow.

[Q] Cannot find -lpthread

Hi all,
I am trying to build AOSP kitkat for Canvas Magnus. While building i get this error and compiling stops. "Cannot find -lpthred" in <path-to-toolchain>/bin/ld. I have tried using android toolchain 4.8, 4.7 came along with source. I tried it with Linaro 4.7, still the same.
I tried searching on XDA & google but not much help found.
Under frameworks/compile/libcc/Android.mk i found this:
ifndef USE_MINGW
LOCAL_LDLIBS := -ldl -lpthread
endif
Seems on non windows os (nix) its asking to use local LD Libs, I am using Mint 17, gcc version 4.8.2.
I need any help understanding why its failing. I don't need a fix, but if you can guide me in a direction i will be greatful.
Regards
AJ
Here's the few lines with the error: its happing while linking gsm0710 modem
Install: out/target/product/a117/system/lib/libext2fs.so
target Executable: bugreport (out/target/product/a117/obj/EXECUTABLES/bugreport_intermediates/LINKED/bugreport)
target Executable: toolbox (out/target/product/a117/obj/EXECUTABLES/toolbox_intermediates/LINKED/toolbox)
target Executable: clatd (out/target/product/a117/obj/EXECUTABLES/clatd_intermediates/LINKED/clatd)
target SharedLib: libbacktrace_libc++ (out/target/product/a117/obj/SHARED_LIBRARIES/libbacktrace_libc++_intermediates/LINKED/libbacktrace_libc++.so)
target Executable: dnsmasq (out/target/product/a117/obj/EXECUTABLES/dnsmasq_intermediates/LINKED/dnsmasq)
target Executable: dumpstate (out/target/product/a117/obj/EXECUTABLES/dumpstate_intermediates/LINKED/dumpstate)
target Executable: gsm0710muxd (out/target/product/a117/obj/EXECUTABLES/gsm0710muxd_intermediates/LINKED/gsm0710muxd)
target Executable: installd (out/target/product/a117/obj/EXECUTABLES/installd_intermediates/LINKED/installd)
/home/xelion/droid-dev/asop/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthread
collect2: error: ld returned 1 exit status
make: *** [out/target/product/a117/obj/EXECUTABLES/gsm0710muxd_intermediates/LINKED/gsm0710muxd] Error 1
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

[Q][WIP] Android 5 Lollipop for S2vep

OK mates i am building Android 5 from the stock AOSP until VanirAOSP Lollipop finish the download by the wat i got this error during compilation, that you show in the box code.
host SharedLib: libSR_Recognizer_32 (out/host/linux-x86/obj32/lib/libSR_Recognizer.so)
target R.java/Manifest.java: VpnDialogs (out/target/common/obj/APPS/VpnDialogs_intermediates/src/R.stamp)
warning: string 'accept' has no default translation.
target R.java/Manifest.java: WallpaperCropper (out/target/common/obj/APPS/WallpaperCropper_intermediates/src/R.stamp)
target StaticExecutable: add-property-tag (out/target/product/s2vep/obj/EXECUTABLES/add-property-tag_intermediates/LINKED/add-property-tag)
target StaticExecutable: check-lost+found (out/target/product/s2vep/obj/EXECUTABLES/check-lost+found_intermediates/LINKED/check-lost+found)
target Executable: cpustats (out/target/product/s2vep/obj/EXECUTABLES/cpustats_intermediates/LINKED/cpustats)
target Executable: dhdutil (out/target/product/s2vep/obj/EXECUTABLES/dhdutil_intermediates/LINKED/dhdutil)
target Executable: fio (out/target/product/s2vep/obj/EXECUTABLES/fio_intermediates/LINKED/fio)
target Executable: latencytop (out/target/product/s2vep/obj/EXECUTABLES/latencytop_intermediates/LINKED/latencytop)
target StaticExecutable: memtrack (out/target/product/s2vep/obj/EXECUTABLES/memtrack_intermediates/LINKED/memtrack)
target Executable: memtrack_share (out/target/product/s2vep/obj/EXECUTABLES/memtrack_share_intermediates/LINKED/memtrack_share)
target Executable: micro_bench (out/target/product/s2vep/obj/EXECUTABLES/micro_bench_intermediates/LINKED/micro_bench)
target StaticExecutable: micro_bench_static (out/target/product/s2vep/obj/EXECUTABLES/micro_bench_static_intermediates/LINKED/micro_bench_static)
target Executable: sane_schedstat (out/target/product/s2vep/obj/EXECUTABLES/sane_schedstat_intermediates/LINKED/sane_schedstat)
target Executable: showslab (out/target/product/s2vep/obj/EXECUTABLES/showslab_intermediates/LINKED/showslab)
target Executable: strace (out/target/product/s2vep/obj/EXECUTABLES/strace_intermediates/LINKED/strace)
target StaticExecutable: su (out/target/product/s2vep/obj/EXECUTABLES/su_intermediates/LINKED/su)
Target boot image: out/target/product/s2vep/boot.img
error: could not load kernel 'out/target/product/s2vep/kernel'
make: *** [out/target/product/s2vep/boot.img] Error 1
make: *** Waiting for unfinished jobs....
warning: no entries written for dimen/password_keyboard_height (0x010500a2)
warning: no entries written for drawable/ab_solid_shadow_mtrl (0x010800bb)
warning: no entries written for drawable/ab_transparent_mtrl_alpha (0x010800c4)
warning: no entries written for drawable/btn_check_off_mtrl_alpha (0x010800f8)
warning: no entries written for drawable/btn_check_on_mtrl_alpha (0x0108010e)
warning: no entries written for drawable/btn_radio_off_mtrl_alpha (0x010801b0)
warning: no entries written for drawable/btn_radio_off_pressed_mtrl_alpha (0x010801b4)
warning: no entries written for drawable/switch_off_mtrl_alpha (0x010806b1)
warning: no entries written for drawable/switch_on_mtrl_alpha (0x010806b2)
warning: no entries written for drawable/sym_keyboard_delete_holo (0x010806c5)
#### make failed to build some targets (01:16:17 (hh:mm:ss)) ####
to know I got about 6gb of s2vep out folder, so any help for this error???
It cannot find boot.img, obviously.
Is kernel compilled? Or does it use a prebuilt one?
haky 86 said:
OK mates i am building Android 5 from the stock AOSP until VanirAOSP Lollipop finish the download by the wat i got this error during compilation, that you show in the box code.
host SharedLib: libSR_Recognizer_32 (out/host/linux-x86/obj32/lib/libSR_Recognizer.so)
target R.java/Manifest.java: VpnDialogs (out/target/common/obj/APPS/VpnDialogs_intermediates/src/R.stamp)
warning: string 'accept' has no default translation.
target R.java/Manifest.java: WallpaperCropper (out/target/common/obj/APPS/WallpaperCropper_intermediates/src/R.stamp)
target StaticExecutable: add-property-tag (out/target/product/s2vep/obj/EXECUTABLES/add-property-tag_intermediates/LINKED/add-property-tag)
target StaticExecutable: check-lost+found (out/target/product/s2vep/obj/EXECUTABLES/check-lost+found_intermediates/LINKED/check-lost+found)
target Executable: cpustats (out/target/product/s2vep/obj/EXECUTABLES/cpustats_intermediates/LINKED/cpustats)
target Executable: dhdutil (out/target/product/s2vep/obj/EXECUTABLES/dhdutil_intermediates/LINKED/dhdutil)
target Executable: fio (out/target/product/s2vep/obj/EXECUTABLES/fio_intermediates/LINKED/fio)
target Executable: latencytop (out/target/product/s2vep/obj/EXECUTABLES/latencytop_intermediates/LINKED/latencytop)
target StaticExecutable: memtrack (out/target/product/s2vep/obj/EXECUTABLES/memtrack_intermediates/LINKED/memtrack)
target Executable: memtrack_share (out/target/product/s2vep/obj/EXECUTABLES/memtrack_share_intermediates/LINKED/memtrack_share)
target Executable: micro_bench (out/target/product/s2vep/obj/EXECUTABLES/micro_bench_intermediates/LINKED/micro_bench)
target StaticExecutable: micro_bench_static (out/target/product/s2vep/obj/EXECUTABLES/micro_bench_static_intermediates/LINKED/micro_bench_static)
target Executable: sane_schedstat (out/target/product/s2vep/obj/EXECUTABLES/sane_schedstat_intermediates/LINKED/sane_schedstat)
target Executable: showslab (out/target/product/s2vep/obj/EXECUTABLES/showslab_intermediates/LINKED/showslab)
target Executable: strace (out/target/product/s2vep/obj/EXECUTABLES/strace_intermediates/LINKED/strace)
target StaticExecutable: su (out/target/product/s2vep/obj/EXECUTABLES/su_intermediates/LINKED/su)
Target boot image: out/target/product/s2vep/boot.img
error: could not load kernel 'out/target/product/s2vep/kernel'
make: *** [out/target/product/s2vep/boot.img] Error 1
make: *** Waiting for unfinished jobs....
warning: no entries written for dimen/password_keyboard_height (0x010500a2)
warning: no entries written for drawable/ab_solid_shadow_mtrl (0x010800bb)
warning: no entries written for drawable/ab_transparent_mtrl_alpha (0x010800c4)
warning: no entries written for drawable/btn_check_off_mtrl_alpha (0x010800f8)
warning: no entries written for drawable/btn_check_on_mtrl_alpha (0x0108010e)
warning: no entries written for drawable/btn_radio_off_mtrl_alpha (0x010801b0)
warning: no entries written for drawable/btn_radio_off_pressed_mtrl_alpha (0x010801b4)
warning: no entries written for drawable/switch_off_mtrl_alpha (0x010806b1)
warning: no entries written for drawable/switch_on_mtrl_alpha (0x010806b2)
warning: no entries written for drawable/sym_keyboard_delete_holo (0x010806c5)
#### make failed to build some targets (01:16:17 (hh:mm:ss)) ####
to know I got about 6gb of s2vep out folder, so any help for this error???
Click to expand...
Click to collapse
Where is located the kernel source?
LuK1337 said:
Where is located the kernel source?
Click to expand...
Click to collapse
The located kernel is in the following folder kernel/samsung/galaxys2plus-common
and also i build the zImage and use it as prebuilt kernel, but still give me same issue
actually i am using bcm28155_capri_ss_s2vep_rev05_defconfig as defconfig cause the default one is for cyanogen mod...
andrewww57 said:
It cannot find boot.img, obviously.
Is kernel compilled? Or does it use a prebuilt one?
Click to expand...
Click to collapse
I try it by make one, compilation is fine and use it as prebuilt one but that error still appear...
Sent from my GT-I9105P using XDA Free mobile app
You need to declare the prebuilt kernel as your prbuilt kernel in device_s2vep.mk , see other aosp trees as an example.
BTW, aosp does not support inline kernel building unless for some qcom kernels
@CoolDevelopment @andrewww57
Thank you guys, i fix boot.img by building one and insert it in device tree as well and also now i have more than 14gb and is finish to build chromium source so i guess will need another many hours...
See you next update...
haky 86 said:
@CoolDevelopment @andrewww57
Thank you guys, i fix boot.img by building one and insert it in device tree as well and also now i have more than 14gb and is finish to build chromium source so i guess will need another many hours...
See you next update...
Click to expand...
Click to collapse
take your time
Better do something like this:
put your prebuilt kernel into device/s2vep/kernel
add this
Code:
TARGET_PREBUILT_KERNEL := kernel
PRODUCT_COPY_FILES += $(LOCAL_PATH)/$(TARGET_PREBUILT_KERNEL):kernel
to the top of device_s2vep.mk
Android 5 *_*
Sent from my GT-I9105P using XDA Premium 4 mobile app
CoolDevelopment said:
Better do something like this:
put your prebuilt kernel into device/s2vep/kernel
add this
Code:
TARGET_PREBUILT_KERNEL := kernel
PRODUCT_COPY_FILES += $(LOCAL_PATH)/$(TARGET_PREBUILT_KERNEL):kernel
to the top of device_s2vep.mk
Click to expand...
Click to collapse
ok now is this and is generate about 17gb of out!! :/
including ./system/media/camera/tests/Android.mk ...
including ./system/netd/client/Android.mk ...
including ./system/netd/server/Android.mk ...
including ./system/security/keystore-engine/Android.mk ...
including ./system/security/keystore/Android.mk ...
including ./system/security/softkeymaster/Android.mk ...
including ./system/vold/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
No private recovery resources for TARGET_DEVICE s2vep
Notice file: external/chromium_org/NOTICE -- out/target/product/s2vep/obj/NOTICE_FILES/src//system/lib/android_webview_android_webview_common_gyp.a.txt
Notice file: external/chromium_org/NOTICE -- out/target/product/s2vep/obj/NOTICE_FILES/src//system/lib/libwebviewchromium.so.txt
Notice file: external/chromium_org/NOTICE -- out/target/product/s2vep/obj/NOTICE_FILES/src//system/lib/android_webview_native_webview_native_gyp.a.txt
target Strip: libwebviewchromium (out/target/product/s2vep/obj/lib/libwebviewchromium.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-striput/target/product/s2vep/symbols/system/lib/libwebviewchromium.so: File format not recognized
make: *** [out/target/product/s2vep/obj/lib/libwebviewchromium.so] Error 1
make: *** Waiting for unfinished jobs....
libwebviewchromium.so is not a prpritary file right?
CoolDevelopment said:
libwebviewchromium.so is not a prpritary file right?
Click to expand...
Click to collapse
I guess no, doing a google it's dependes from ram quantity coz i have 4gb, now i correct my device_s2vep.mk with your configuration, because boot.img still appear, i guess the compilation is at the end... :/
please try to update make to at least 4.0
CoolDevelopment said:
please try to update make to at least 4.0
Click to expand...
Click to collapse
That should be downloading from here? coz i use 3.82!!
http://ftp.gnu.org/gnu/make/
is stuck after creating userdata.img and have 18.2gb of out, i am going to kill my self!!!
Thank your so very mich for doing all this hard work for our S2+!!
Just a quick noob question:
Is the zip file allready compiled vor does compiling fail?
Thanks in advance
NW2000 said:
Thank your so very mich for doing all this hard work for our S2+!!
Just a quick noob question:
Is the zip file allready compiled vor does compiling fail?
Thanks in advance
Click to expand...
Click to collapse
Nop is still stuck at boot.img, i guess to wait cm12, it's easier to port
haky 86 said:
Nop is still stuck at boot.img, i guess to wait cm12, it's easier to port
Click to expand...
Click to collapse
Compile kernel to get the 'kernel' file and use it as prebuilt in config. It should work.
As @CoolDevelopment said add to device mk file this code
Code:
TARGET_PREBUILT_KERNEL := kernel
PRODUCT_COPY_FILES += $(LOCAL_PATH)/$(TARGET_PREBUILT_KERNEL):kernel
and put 'kernel' into the folder of device source. It should handle this kernel. Also it's better to delete 'TARGET_KERNEL_SOURCE' and 'TARGET_KERNEL_CONFIG' from BoardConfig.mk, I think.
andrewww57 said:
Compile kernel to get the 'kernel' file and use it as prebuilt in config. It should work.
As @CoolDevelopment said add to device mk file this code
Code:
TARGET_PREBUILT_KERNEL := kernel
PRODUCT_COPY_FILES += $(LOCAL_PATH)/$(TARGET_PREBUILT_KERNEL):kernel
and put 'kernel' into the folder of device source. It should handle this kernel. Also it's better to delete 'TARGET_KERNEL_SOURCE' and 'TARGET_KERNEL_CONFIG' from BoardConfig.mk, I think.
Click to expand...
Click to collapse
OK andrew I will follow that steps, by the way i am downloading it again with all prebuilts tools i guess missed some tools that generate boot.img, once got the zImage i need to rename it to kernel.
Something like this?
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/s2vep/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
So that's mean the # Kernel lines in boardconfig.mk should be removed in this case?
thanx again
haky 86 said:
OK andrew I will follow that steps, by the way i am downloading it again with all prebuilts tools i guess missed some tools that generate boot.img, once got the zImage i need to rename it to kernel.
Something like this?
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/s2vep/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
So that's mean the # Kernel lines in boardconfig.mk should be removed in this case?
thanx again
Click to expand...
Click to collapse
Try to add this to BoardConfig:
Code:
TARGET_PREBUILT_KERNEL := device/samsung/s2vep/kernel
and delete 'TARGET_KERNEL_SOURCE' and 'TARGET_KERNEL_CONFIG'
And add yours to device mk:
Code:
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/s2vep/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel

Error when compile resurection remix 5.8.4

Hello guys here
I try to build rr 5.8.4 rom and when i type brunch grandppltedx i got this error:
Checking build tools versions...
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/lol/RR/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
cp: cannot stat '/home/lol/RR/ota_conf': No such file or directory
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/NexusLauncher/NexusLauncher.apk:system/app/NexusLauncher/NexusLauncher.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/Wallpaper/Wallpaper.apk:system/app/Wallpaper/Wallpaper.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/DeskClock/DeskClock.apk:system/app/DeskClock/DeskClock.apk, use BUILD_PREBUILT instead!
build/core/java.mk:334: warning: overriding commands for target `/home/lol/RR/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/lol/RR/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/home/lol/RR/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/lol/RR/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:320: warning: overriding commands for target `/home/lol/RR/out/target/product/grandppltedx/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/lol/RR/out/target/product/grandppltedx/root/res/images/charger/battery_fail.png'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/lol/RR/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/R.stamp', needed by '/home/lol/RR/out/target/common/obj/APPS/BasicDreams_intermediates/src/R.stamp', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/lol/RR'
#### make failed to build some targets (03:19 (mm:ss)) ####
No Jack server running. Try 'jack-admin start-server'
-Now I have no idea how to solve the build error please help me

CM/LOS Build Error during zip packaging

I'm building a CM/LOS 13 ROM for a Mediatek based device. The build completes up until about 99% when it packages the ROM in to a .zip and the following lines appear:
PHP:
Install system fs image: /home/android/lineage13/out/target/product/QW09/system.img
/home/android/lineage13/out/target/product/QW09/system.img+/home/android/lineage13/out/target/product/QW09/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=1096212480 blocksize=135168 total=529126717 reserve=11083776
Package target files: /home/android/lineage13/out/target/product/QW09/obj/PACKAGING/target_files_intermediates/lineage_QW09-target_files-eea485c9a7.zip
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
putting script in bin/install-recovery.sh
/bin/bash: -c: line 0: unexpected EOF while looking for matching ``'
/bin/bash: -c: line 1: syntax error: unexpected end of file
build/core/Makefile:1682: recipe for target '/home/android/lineage13/out/target/product/QW09/obj/PACKAGING/target_files_intermediates/lineage_QW09-target_files-eea485c9a7.zip' failed
make: *** [/home/android/lineage13/out/target/product/QW09/obj/PACKAGING/target_files_intermediates/lineage_QW09-target_files-eea485c9a7.zip] Error 1
I've never experience this before when building LOS, and I can't work out if it's an issue in the device trees, or in the build system.
Here are the dev trees:
https://gitlab.com/optech/android_vendor_tenfifteen-qw09
https://gitlab.com/optech/android_device_tenfifteen-qw09

Categories

Resources