|
@@ -61,7 +61,7 @@ cp_portable() {
|
|
-e 'linux/const' \
|
|
-e 'linux/const' \
|
|
-e 'linux/kernel' \
|
|
-e 'linux/kernel' \
|
|
-e 'linux/sysinfo' \
|
|
-e 'linux/sysinfo' \
|
|
- -e 'asm-generic/kvm_para' \
|
|
|
|
|
|
+ -e 'asm/setup_data.h' \
|
|
> /dev/null
|
|
> /dev/null
|
|
then
|
|
then
|
|
echo "Unexpected #include in input file $f".
|
|
echo "Unexpected #include in input file $f".
|
|
@@ -77,6 +77,7 @@ cp_portable() {
|
|
-e 's/__be\([0-9][0-9]*\)/uint\1_t/g' \
|
|
-e 's/__be\([0-9][0-9]*\)/uint\1_t/g' \
|
|
-e 's/"\(input-event-codes\.h\)"/"standard-headers\/linux\/\1"/' \
|
|
-e 's/"\(input-event-codes\.h\)"/"standard-headers\/linux\/\1"/' \
|
|
-e 's/<linux\/\([^>]*\)>/"standard-headers\/linux\/\1"/' \
|
|
-e 's/<linux\/\([^>]*\)>/"standard-headers\/linux\/\1"/' \
|
|
|
|
+ -e 's/<asm\/\([^>]*\)>/"standard-headers\/asm-'$arch'\/\1"/' \
|
|
-e 's/__bitwise//' \
|
|
-e 's/__bitwise//' \
|
|
-e 's/__attribute__((packed))/QEMU_PACKED/' \
|
|
-e 's/__attribute__((packed))/QEMU_PACKED/' \
|
|
-e 's/__inline__/inline/' \
|
|
-e 's/__inline__/inline/' \
|
|
@@ -155,11 +156,14 @@ for arch in $ARCHLIST; do
|
|
"$tmpdir/include/asm/bootparam.h" > "$tmpdir/bootparam.h"
|
|
"$tmpdir/include/asm/bootparam.h" > "$tmpdir/bootparam.h"
|
|
cp_portable "$tmpdir/bootparam.h" \
|
|
cp_portable "$tmpdir/bootparam.h" \
|
|
"$output/include/standard-headers/asm-$arch"
|
|
"$output/include/standard-headers/asm-$arch"
|
|
|
|
+ cp_portable "$tmpdir/include/asm/setup_data.h" \
|
|
|
|
+ "$output/standard-headers/asm-x86"
|
|
fi
|
|
fi
|
|
if [ $arch = riscv ]; then
|
|
if [ $arch = riscv ]; then
|
|
cp "$tmpdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/"
|
|
cp "$tmpdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/"
|
|
fi
|
|
fi
|
|
done
|
|
done
|
|
|
|
+arch=
|
|
|
|
|
|
rm -rf "$output/linux-headers/linux"
|
|
rm -rf "$output/linux-headers/linux"
|
|
mkdir -p "$output/linux-headers/linux"
|
|
mkdir -p "$output/linux-headers/linux"
|