samsung-a5xelte: make dtb can't generate during building linux package
Describe your issue
What's the expected behavior?
In APKBUILD of samsung-a5xelte, use dtbTool-exynos it'll find the current dtb generated during compiling.
What's the current behavior?
-
When in APKBUILD, in build() section add the following :
make O="
_outdir" ARCH="
_carch" CC="${CC:-gcc}" dtbs \\ normally shouldn't add this, for debugging...in log it'll return :
make[2]: Nothing to be done for 'dtbs'. error: failed to read dtb 'arch/arm64/boot/dts/exynos7580-universal7580_q.dtb' Segmentation fault (core dumped)
-
Use envkernel.sh to build the same source, the "make dtbs" can generate the dtb sucessfully.
so I'm thinking that build script from APKBUILD may have problem for generating dtb...
How to reproduce your issue?
What device are you using?
samsung-a5xelte
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
stable ( v20.05
branch)
On what environment did you encounter the issue?
Phone environments
-
Phosh -
Plasma Mobile -
Sxmo
Other
-
No environment -
GNOME -
KDE Plasma -
Kodi -
MATE -
Shelli -
Sway -
Weston -
Xfce4 -
fbkeyboard -
i3wm
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in dd-mm-yyyy format)
Source location:
https://gitlab.com/natsu1978/pmaports/-/blob/a5xelte/device/testing/linux-samsung-a5xelte/APKBUILD
https://gitlab.com/natsu1978/android_kernel_a5xelte
Additional information
Logs:
https://gitlab.com/-/snippets/2026403
envkernel.sh situation:
[envkernel] /mnt/data/home/kernel/A510$ make dtbs *** pmbootstrap envkernel.sh active for /mnt/data/home/kernel/A510! *** make: Entering directory '/mnt/linux' CC scripts/mod/empty.o MKELF scripts/mod/elfconfig.h CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost DTC arch/arm64/boot/dts/exynos7580-universal7580.dtb DTC arch/arm64/boot/dts/exynos7580-universal7580_rev01.dtb DTC arch/arm64/boot/dts/exynos7580-universal7580_q.dtb make: Leaving directory '/mnt/linux' [envkernel] /mnt/data/home/kernel/A510$ pmbootstrap build --envkernel linux-samsung-a5xelte [00:24:16] ERROR: Couldn't find a kbuild out directory. Is your APKBUILD messed up? If not, then consider adjusting the patterns in pmb/build/envkernel.py to work with your APKBUILD, or submit an issue. [00:24:16] See also: <https://postmarketos.org/troubleshooting> Run 'pmbootstrap log' for details.