Hi,
I have a SDA845 HDK and I would like to build a custom image based on Android 11.
I followed the below steps :
- repo init -u git://codeaurora.org/platform/manifest.git -b release -m LA.UM.9.3.r1-00500-sdm845.0.xml --repo-url=git://codeaurora.org/tools/repo.git
- repo sync
- source build/envsetup.h
- lunch sdm845-userdebug
- make -j2
First issue : when I run step 3, I observed the envsetup.h script is located in the build/make/ path.
After I applied a workaround by copying the envsetup.h script directly in the build/ path, I continued with steps 4 and 5 obtaining the following error:
FAILED: ninja: 'Android.bp', needed by 'out/soong/.bootstrap/build.ninja', missing and no known rule to make it
What I am doing wrong here? The above steps are obsolete?
Any feedback is greatly appreciated.
Thanks Florin.
Hi Florin,
Thanks for reaching out to us.
In step4, you have used "lunch sdm945-userdebug". So, I assume that it's your custom target.
If yes, could you please confirm if you have made necessary build changes to create a custom target in "vendor/qcom/proprietary/common" folder? Also, a corresponding target with name "sdm945" in "vendor/qcom/proprietary/common/config/sdclang.json" file is required.
If you have not done these changes, I suggest you to refer to a target in the above folder and the json file to make necessary changes and then try to build with the same steps you listed. You may refer to an already existing target to make changes for your custom target.
Otherwise, if your target is still sdm845, I suggest you to modify step4 command from "lunch sdm945-userdebug" to "lunch sdm845-userdebug" and check if it helps to resolve your issue.
Thanks,
Raghu.
Hi Raghu,
It was a typo .
My target is sdm845, so I modified the step4.
The compilation issue reported above is after I run lunch sdm845-userdebug and make -j2 commands.
Thanks,
Florin
Hi Florin,
Thanks for clarifying.
I will check the instructions with our internal team and get back to you.
Thanks,
Raghu.
Hi Raghu,
Any updates?
Do you have a feedback from your internal team?
Best regards,
Florin
Hi,
I use this command to download code, but the envsetup.sh in build path.
Could you try it again? and check the .repo/mainfest.xml