FORUMS

[GUIDE] How to build an unsupported rom using sources from other roms

1,286 posts
Thanks Meter: 1,234
 
By ThePiGuy, Senior Member on 20th September 2018, 06:10 PM
Post Reply Email Thread
29th January 2020, 06:42 PM |#51  
Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by ThePiGuy

Ah yeah that would do it. So now you should have the sources synced and can follow the guide to try and get PE working

I'm back to bother you again
the second part of the guide, I didn't understand it well, just rename the files from Lineage to PixelExperience?
Because I tried to issue the source
Code:
 build / envsetup.sh
command and then just
Code:
 Brunch
(to see if it came out in the command list).
In the end I gave the command to build, but it only gave me mistakes. So in other words, do I just have to rename the files of the device trees in the h815 folder (I have this device model, and for this I am interested in building initially)? (first step)
while, for second action, what should I do in <rom> .dependancies? What should I add to the local manifest?
23rd February 2020, 02:48 AM |#52  
SnowFuhrer's Avatar
Senior Member
Flag Spirit River
Thanks Meter: 457
 
More
I've been trying to build havoc for my device(a5) but keep getting this error.
Code:
============================================
[1/1] /home/snowfuhrer/AOSP/havoc-2/out/soong/.minibootstrap/minibp /home/snowfuhrer/AOSP/havoc-2/out/soong/.bootstrap/build.ninja
[1/1] /home/snowfuhrer/AOSP/havoc-2/out/soong/.bootstrap/bin/soong_build /home/snowfuhrer/AOSP/havoc-2/out/soong/build.ninja
FAILED: /home/snowfuhrer/AOSP/havoc-2/out/soong/build.ninja 
/home/snowfuhrer/AOSP/havoc-2/out/soong/.bootstrap/bin/soong_build -t -l /home/snowfuhrer/AOSP/havoc-2/out/.module_paths/Android.bp.list -b /home/snowfuhrer/AOSP/havoc-2/out/soong -n /home/snowfuhrer/AOSP/havoc-2/out -d /home/snowfuhrer/AOSP/havoc-2/out/soong/build.ninja.d -o /home/snowfuhrer/AOSP/havoc-2/out/soong/build.ninja Android.bp
panic: package "android/soong/generator" already has a package context

goroutine 1 [running]:
github.com/google/blueprint.NewPackageContext(0x8a37e3, 0x17, 0x8aa62c, 0x21)
	/home/snowfuhrer/AOSP/havoc-2/build/blueprint/package_ctx.go:99 +0x464
android/soong/android.NewPackageContext(0x8a37e3, 0x17, 0xc4200d7f68, 0x79376e)
	/home/snowfuhrer/AOSP/havoc-2/build/soong/android/package_ctx.go:33 +0x35
ninja: build stopped: subcommand failed.
19:34:56 soong bootstrap failed with: exit status 1
Im sure its a simple mistake, but i cant figure it for the life of me. Anyone have an idea? Thanks
1st March 2020, 10:05 AM |#53  
TheForce's Avatar
Senior Member
Galactic Republic
Thanks Meter: 133
 
More
When you're going to build 2 versions of a build, is it then wise to also make 2 directories, for example: /android/lineage9 and /android/lineage10 or can you make the 2 builds in one directory /android/lineage ???

Thank you for making this thread.

Solved: I have to make 2 maps.
The Following User Says Thank You to TheForce For This Useful Post: [ View ] Gift TheForce Ad-Free
4th March 2020, 12:42 PM |#54  
Junior Member
Thanks Meter: 0
 
More
couldn't compile
-Predator-G3-572:/media/data/lineage_17.1$ brunch lineage_dream2lte-userdebug
Looking for dependencies in device/samsung/dream2lte
Looking for dependencies in device/samsung/universal8895-common
Looking for dependencies in hardware/samsung
hardware/samsung has no additional dependencies.
Looking for dependencies in kernel/samsung/universal8895
kernel/samsung/universal8895 has no additional dependencies.
Looking for dependencies in packages/resources/devicesettings
packages/resources/devicesettings has no additional dependencies.

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200304-UNOFFICIAL-dream2lte
TARGET_PRODUCT=lineage_dream2lte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=exynos-m1
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.3.0-40-generic-x86_64-Ubuntu-18.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
LINEAGE_VERSION=17.1-20200304-UNOFFICIAL-dream2lte
TARGET_PRODUCT=lineage_dream2lte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=exynos-m1
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.3.0-40-generic-x86_64-Ubuntu-18.04.4-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=out
============================================
[ 99% 627/628] finishing build rules ...
FAILED:
build/make/core/main.mk:1319: warning: Host modules should be in PRODUCT_HOST_PACKAGES, not PRODUCT_PACKAGES
Offending entries:
dtbhtoolExynos
build/make/core/main.mk:1319: error: Build failed.
15:39:53 ckati failed with: exit status 1

#### failed to build some targets (01:30 (mm:ss)) ####
25th March 2020, 08:48 AM |#55  
Junior Member
Flag Kerala
Thanks Meter: 0
 
More
Hy I'm building lineage os 14.1 for SM-J250F
Samsung Galaxy J2 Pro 2018 (SM-J250F) but im not going to giveup .. so I'm started to build roms my self .. fixed some build errors and successfully compiled but it stuck on Samsung logo(no bootanimation) also took pstore logs but it only store recovery logs .. sir can you please help to make it boot? Can u kindly tell me what changes i need to do in sources to make it boot? Or can u fix the issue in my tree? Please I'm hoping your feedback

Source android base : Android 7.1.1
Tried compilation : Lineage OS 14.1

I cant post my tree links due to new account please pm
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes