mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-add-overlay: Fall back to always using headers dtc
dtc in Bionic still has bugs that affect some overlays https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/livetree.c?id=bba26a5291c8343101e0296b0e478deb4c9b60b0
This commit is contained in:
@@ -47,7 +47,12 @@ fi
|
||||
|
||||
if [[ -d /lib/modules/$(uname -r)/build/scripts/dtc ]]; then
|
||||
if [[ ! -x /lib/modules/$(uname -r)/build/scripts/dtc/dtc ]]; then
|
||||
echo "Warning: kernel headers are not installed properly"
|
||||
# Can't use distribution provided (i.e. Bionic) dtc yet
|
||||
# https://git.kernel.org/pub/scm/utils/dtc/dtc.git/commit/livetree.c?id=bba26a5291c8343101e0296b0e478deb4c9b60b0
|
||||
echo >&2 "Error: kernel headers are not installed properly"
|
||||
echo >&2 "Can't find dtc that supports compiling overlays"
|
||||
echo >&2 "Please install the headers package for kernel $(uname -r)"
|
||||
exit -1
|
||||
else
|
||||
export PATH=/lib/modules/$(uname -r)/build/scripts/dtc/:$PATH
|
||||
fi
|
||||
@@ -61,7 +66,7 @@ fi
|
||||
|
||||
if ! grep -q 'symbols' <(dtc --help) ; then
|
||||
echo "Error: dtc does not support compiling overlays"
|
||||
echo "Please try to install matching kernel headers"
|
||||
# echo "Please try to install matching kernel headers"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user