Closed dmitvitalii closed 4 years ago
Hi @dmitvitalii ,
Thank you for your report. Can you execute $ which sgdisk
from the terminal and share result?
ADD: Also please share OS type which you are using
Before sourcing && lunch
/sbin/sgdisk
After sourcing && lunch
/aosp/out/soong/host/linux-x86/bin/sgdisk
OS Ubuntu-18.04.5-LTS using Docker
To overcome such AOSP restriction we are modifying PATH variable: https://github.com/GloDroid/glodroid_device/blob/6ad27a5047990119f297fdaef2a10bcfba4b43f9/platform/tools/tools.mk#L3 It should also work in your case. We never used docker to build, so it might be a reason.
Thank you for pointing it up, I will try to find the reason. After the first successful build, this issue no longer appears.
You're welcome. In case issue is still relevant please reopen it.
Environment
Steps
. build/envsetup.sh
lunch rpi4-userdebug
make images
Result
_"sgdisk" is not allowed to be used. See https://android.googlesource.com/platform/build/+/master/Changes.md#PATH_Tools for more information._
Workaround
make TEMPORARY_DISABLE_PATH_RESTRICTIONS=true images
Possible Solution
Either use another tools, listed in
build/soong/ui/build/paths/config.go
, or add"sgdisk": Allowed
toConfigurations
map in that file.