Home Home > GIT Browse > packaging
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2017-05-31 14:43:33 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-01-31 15:46:00 +0100
commit466f10848b696974ed1e6031329fd836e8ee167c (patch)
tree7608f7a153d6ea73b1c41134a316713e354ee3cc
parent77ccbd0f4304686f7a9c79d38b05302e5a629dde (diff)
rpm/dtb.spec.in.in: Update include path for dt-bindings
Kernels before 4.12 had arch/{arm,arm64}/boot/dts/include/ directories with a symlink to include/dt-bindings/. In 4.12 those include/ directories were dropped. Therefore use include/ directly. Additionally some cross-architecture .dtsi reuse was introduced, which requires scripts/dtc/include-prefixes/ that didn't exist on older kernels. Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r--rpm/dtb.spec.in.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpm/dtb.spec.in.in b/rpm/dtb.spec.in.in
index dca895a496..3583614d0b 100644
--- a/rpm/dtb.spec.in.in
+++ b/rpm/dtb.spec.in.in
@@ -65,6 +65,7 @@ cd linux-%srcversion
%build
source=linux-%srcversion
cp $source/COPYING .
+SRCDIR=`pwd`/$source
mkdir pp
PPDIR=`pwd`/pp
export DTC_FLAGS="-R 4 -p 0x1000"
@@ -76,7 +77,7 @@ cd $source/$DTS_folder
for dts in $ALL_SUPPORTED_DTB; do
target=${dts%*.dts}
mkdir -p $PPDIR/$(dirname $target)
- cpp -x assembler-with-cpp -undef -D__DTS__ -nostdinc -I. -I./include/ -P $target.dts -o $PPDIR/$target.dts
+ cpp -x assembler-with-cpp -undef -D__DTS__ -nostdinc -I. -I$SRCDIR/include/ -I$SRCDIR/dtc/include-prefixes/ -P $target.dts -o $PPDIR/$target.dts
dtc $DTC_FLAGS -I dts -O dtb -i ./$(dirname $target) -o $PPDIR/$target.dtb $PPDIR/$target.dts
done