Hi everyone I'm trying to build Android 4.3.1 AOSP For galaxy tab 2 7.0 GT-P3113 but i got the following error
make: *** No rule to make target `out/target/product/p3113/kernel', needed by `out/target/product/p3113/boot.img'. Stop.
Click to expand...
Click to collapse
However i have a prebuilt kernel in my device tree (samsung/p3113/kernel)
and added entries in my device.mk
# Prebuilt Kernel And Modules
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/p3113/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES := \
$(LOCAL_KERNEL):kernel \
$(LOCAL_PATH)/system/lib/modules/scsi_wait_scan.ko \
$(LOCAL_PATH)/system/lib/modules/dhd.ko
Click to expand...
Click to collapse
Click to expand...
Click to collapse
I don't know what to do now please Help me
Related
Hey guys,
I'm trying to build a unofficial version of CM12.1, but it fails while building with following error:
Code:
build/core/package_internal.mk:351: *** target pattern contains no '%'. stop.
the corresponing line from package_interal:
Code:
[348] private_key := $(LOCAL_CERTIFICATE).pk8
[349] certificate := $(LOCAL_CERTIFICATE).x509.pem
[350]
[351] $(LOCAL_BUILT_MODULE): $(private_key) $(certificate) $(SIGNAPK_JAR)
[352] $(LOCAL_BUILT_MODULE): PRIVATE_PRIVATE_KEY := $(private_key)
[353] $(LOCAL_BUILT_MODULE): PRIVATE_CERTIFICATE := $(certificate)
If you need further information about device (i don't think that's revelant?) etc. just ask.
revide said:
Hey guys,
I'm trying to build a unofficial version of CM12.1, but it fails while building with following error:
Code:
build/core/package_internal.mk:351: *** target pattern contains no '%'. stop.
the corresponing line from package_interal:
Code:
[348] private_key := $(LOCAL_CERTIFICATE).pk8
[349] certificate := $(LOCAL_CERTIFICATE).x509.pem
[350]
[351] $(LOCAL_BUILT_MODULE): $(private_key) $(certificate) $(SIGNAPK_JAR)
[352] $(LOCAL_BUILT_MODULE): PRIVATE_PRIVATE_KEY := $(private_key)
[353] $(LOCAL_BUILT_MODULE): PRIVATE_CERTIFICATE := $(certificate)
If you need further information about device (i don't think that's revelant?) etc. just ask.
Click to expand...
Click to collapse
Sorry for this bump, but being on the fourth site without any replies kinda frustrates me..
cmon guys, halp
Okay, solved problem.
For all of you who experience the same issue, my proprietary-blob list got entries that were not real files. update yours and you should be good.
Hi, like in the topic, this is my problem. I'm trying to compile CyanogenMod 12.1 with kernel for HTC Desire 820, no matter, this error say there is not toolchains, yes? But I have it. Anyone can help?
@edit I changed in build/core/task/kernel.mk from
TARGET_KERNEL_CROSS_COMPILE_PREFIX := $(strip $(TARGET_KERNEL_CROSS_COMPILE_PREFIX))
ifeq ($(TARGET_KERNEL_CROSS_COMPILE_PREFIX),)
ifeq ($(KERNEL_TOOLCHAIN_PREFIX),)
KERNEL_TOOLCHAIN_PREFIX := arm-eabi-
endif
else
KERNEL_TOOLCHAIN_PREFIX := $(TARGET_KERNEL_CROSS_COMPILE_PREFIX)
endif
ifeq ($(KERNEL_TOOLCHAIN),)
KERNEL_TOOLCHAIN_PATH := $(KERNEL_TOOLCHAIN_PREFIX)
else
ifneq ($(KERNEL_TOOLCHAIN_PREFIX),)
KERNEL_TOOLCHAIN_PATH := $(KERNEL_TOOLCHAIN)/$(KERNEL_TOOLCHAIN_PREFIX)
endif
endif
to
TARGET_KERNEL_CROSS_COMPILE_PREFIX := $(strip $(TARGET_KERNEL_CROSS_COMPILE_PREFIX))
ifeq ($(TARGET_KERNEL_CROSS_COMPILE_PREFIX),)
ifeq ($(KERNEL_TOOLCHAIN_PREFIX),)
KERNEL_TOOLCHAIN_PREFIX := arm-linux-androideabi-
endif
else
KERNEL_TOOLCHAIN_PREFIX := $(TARGET_KERNEL_CROSS_COMPILE_PREFIX)
endif
ifeq ($(KERNEL_TOOLCHAIN),)
KERNEL_TOOLCHAIN_PATH := $(KERNEL_TOOLCHAIN_PREFIX)
else
ifneq ($(KERNEL_TOOLCHAIN_PREFIX),)
KERNEL_TOOLCHAIN_PATH := $(KERNEL_TOOLCHAIN)/$(KERNEL_TOOLCHAIN_PREFIX)
endif
endif
Now only I have this error:
make[2]: ***No rules to make target 'zImage'. Stop.
Makefile:130: commands for 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: going out '/root/cm12.1/kernel/htc/htc_a51ul'
build/core/tasks/kernel.mk:233: commands for 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES]Error 2
I translated the log because I'm Polish. If someone can help me I'll be very happy
Compiler must to be 64bit, aarch64-linux-gnu-
Sent from my HTC Desire 820 using Tapatalk
Hi,
I currently try building this one myself:
http://forum.xda-developers.com/android/development/rom-cyanogenmod-12-0-samsung-express-gt-t2949359
it's CM 12.1 for the Samsung Galaxy Express GT-I8730
After hours of building it breaks with a missing library.
Code:
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/ClassPathScanner.java:19: error: package android.support.annotation does not exist
import android.support.annotation.VisibleForTesting;
build/core/java.mk:346: recipe for target '~/src/cm-12.1-main/out/target/common/obj/JAVA_LIBRARIES/android-support-test-src_intermediates/classes-full-debug.jar' failed
make: *** [~/src/cm-12.1-main/out/target/common/obj/JAVA_LIBRARIES/android-support-test-src_intermediates/classes-full-debug.jar] Error 41
package android.support.annotation is missing. It's available here
Code:
./frameworks/support/annotations/src/android/support/annotation
./prebuilts/sdk/current/support/annotations/android-support-annotations.jar
But it's not included in build.
This is the code in question, in build/core/java.mk:346
Code:
# Compile the java files to a .jar file.
# This intentionally depends on java_sources, not all_java_sources.
# Deps for generated source files must be handled separately,
# via deps on the target that generates the sources.
$(full_classes_compiled_jar): PRIVATE_JAVACFLAGS := $(LOCAL_JAVACFLAGS)
$(full_classes_compiled_jar): PRIVATE_JAR_EXCLUDE_FILES := $(LOCAL_JAR_EXCLUDE_FILES)
$(full_classes_compiled_jar): PRIVATE_JAR_PACKAGES := $(LOCAL_JAR_PACKAGES)
$(full_classes_compiled_jar): PRIVATE_JAR_EXCLUDE_PACKAGES := $(LOCAL_JAR_EXCLUDE_PACKAGES)
$(full_classes_compiled_jar): PRIVATE_RMTYPEDEFS := $(LOCAL_RMTYPEDEFS)
$(full_classes_compiled_jar): PRIVATE_DONT_DELETE_JAR_META_INF := $(LOCAL_DONT_DELETE_JAR_META_INF)
$(full_classes_compiled_jar): $(java_sources) $(java_resource_sources) $(full_java_lib_deps) \
$(jar_manifest_file) $(layers_file) $(RenderScript_file_stamp) \
$(proto_java_sources_file_stamp) $(LOCAL_ADDITIONAL_DEPENDENCIES)
$(transform-java-to-classes.jar)
How do I find out the content of the variables? How do I modify it?
Since I am building from a branch, it probably is a temporary problem. I issued a repo sync, but it dit not help (yet).
any idea?
thanks
JPT
Hi, so i've tried to compile TWRP inside CM14 source and i've been struggling with linking error for a while
Code:
system/core/adb/adb_auth_client.cpp:94: error: undefined reference to 'android_pubkey_decode'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[ 80% 4855/6059] target C: libminzip ...ootable/recovery-twrp/minzip/SysUtil.c
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (04:34 (mm:ss)) ####
It's basicly CM14 not changed at all. What i discovered is that in OUT folder inside static libraries there is no libcrypto-utils build. In fact there is a folder but just with export-includes.txt
Here is part of system/core/adb/Android.mk
Code:
include $(CLEAR_VARS)
LOCAL_CLANG := true
LOCAL_MODULE := libadbd
LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=0
LOCAL_SRC_FILES := \
$(LIBADB_SRC_FILES) \
adb_auth_client.cpp \
jdwp_service.cpp \
usb_linux_client.cpp \
LOCAL_SANITIZE := $(adb_target_sanitize)
# Even though we're building a static library (and thus there's no link step for
# this to take effect), this adds the includes to our path.
LOCAL_STATIC_LIBRARIES := libcrypto_utils_static libcrypto_static libbase
include $(BUILD_STATIC_LIBRARY)
And part of libcrypto_utils/Android.mk
Code:
include $(CLEAR_VARS)
LOCAL_MODULE := libcrypto_utils_static
LOCAL_SRC_FILES := android_pubkey.c
LOCAL_CFLAGS := -Wall -Werror -Wextra -std=c99
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_STATIC_LIBRARIES := libcrypto_static
include $(BUILD_STATIC_LIBRARY)
Also header file is included in adb_auth_client.cpp
Code:
#include <crypto_utils/android_pubkey.h>
What am i doing wrong?
Have you fixed this? I have same problem and i do not know how to fix it ..
_______________SOLVED____________________
https://github.com/discipuloosho/an...mmit/22801f5f78b5b996b163d54cf5c886a2d6db81c7
Anyone got a fix for this?
HaoZeke said:
Anyone got a fix for this?
Click to expand...
Click to collapse
Have you searched/posted this question within the the following thread that's a guide to performing this?
[GUIDE][NOOB FRIENDLY]How to compile TWRP from source step by step by Hacker432
Good Luck!
~~~~~~~~~~~~~~~
I Am The Egg Man,
They Are The Egg Men.
I Am The Walrus!
Coo Coo Cachoo!
I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.
PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
i've been trying to find a way to compile rom's for J7 Max, codename j7maxlte
Almost everything seems to work except the device tree
link to the tree is here.
its pretty old, so there's a Vendorsetup.sh.
when i try to run envsetup.sh, it tells me to use COMMON_LUNCH_CHOICES in AndroidProducts.mk instead.
When i edit AndroidProducts.mk, like:
Code:
COMMON_LUNCH_CHOICES := \
aosp_j7maxlte-eng
aosp_j7maxlte-userdebug
aosp_j7maxlte-user
it fails, and says :
Code:
In file included from build/make/core/config.mk:352:
In file included from build/make/core/envsetup.mk:354:
device/samsung/j7maxlte/AndroidProducts.mk:4: error: COMMON_LUNCH_CHOICES contains products(s) not defined in this file: aosp_j7maxlte aosp_j7maxlte aosp_j7maxlte.
19:08:25 dumpvars failed with: exit status 1
In file included from build/make/core/config.mk:352:
In file included from build/make/core/envsetup.mk:354:
device/samsung/j7maxlte/AndroidProducts.mk:4: error: COMMON_LUNCH_CHOICES contains products(s) not defined in this file: aosp_j7maxlte aosp_j7maxlte aosp_j7maxlte.
19:08:27 dumpvars failed with: exit status 1
also, this is my vendor tree, and this is the kernel
pls help
i have been trying for 2 days
im trying to compile PixelOS
Running Ubuntu 22.04.1 LTS in WSL2
Did you compile TWRP?
Try to replace your AndroidProducts.mk like this:
Code:
COMMON_LUNCH_CHOICES := \
lineage_j7maxlte-eng \
lineage_j7maxlte-userdebug \
lineage_j7maxlte-user
If it doesn't work, then try:
Code:
COMMON_LUNCH_CHOICES := \
aosp_j7maxlte-eng \
aosp_j7maxlte-userdebug \
aosp_j7maxlte-user
notnoelchannel said:
Did you compile TWRP?
Click to expand...
Click to collapse
Wdym, compile twrp? Im trying to compile PixelOS. Do I have to use TWRP device tree too?
notnoelchannel said:
Try to replace your AndroidProducts.mk like this:
Code:
COMMON_LUNCH_CHOICES := \
lineage_j7maxlte-eng \
lineage_j7maxlte-userdebug \
lineage_j7maxlte-user
If it doesn't work, then try:
Code:
COMMON_LUNCH_CHOICES := \
aosp_j7maxlte-eng \
aosp_j7maxlte-userdebug \
aosp_j7maxlte-user
Click to expand...
Click to collapse
Thanks, I'll try that.
[Unnamed] said:
Thanks, I'll try that.
Click to expand...
Click to collapse
How did it go?
notnoelchannel said:
How did it go?
Click to expand...
Click to collapse
sorry for the late reply
no, it doesnt work
idk why
[Unnamed] said:
sorry for the late reply
no, it doesnt work
idk why
Click to expand...
Click to collapse
show me the error
notnoelchannel said:
show me the error
Click to expand...
Click to collapse
Same error