Skip to content

Commit

Permalink
move uapi headers under include/, too
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Mar 14, 2024
1 parent 9f415ef commit 1654f91
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile.deps
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# by selectively including just the uAPI header of the family directly
# from the kernel sources.

UAPI_PATH:=../uapi/
UAPI_PATH:=../include/

# scripts/headers_install.sh strips "_UAPI" from header guards so we
# need the explicit -D matching what's in /usr, to avoid multiple definitions.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions update-from-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ KSRC=$1
make -C ${KSRC}/tools/net/ynl -j $(nproc) || exit 1

cp -v ${KSRC}/tools/net/ynl/Makefile.deps ./
sed -i 's@^UAPI_PATH:=.*@UAPI_PATH:=../uapi/@' Makefile.deps
sed -i 's@^UAPI_PATH:=.*@UAPI_PATH:=../include/@' Makefile.deps

mkdir -p uapi/linux/
mkdir -p include/linux/
for hdr in $(cat Makefile.deps | sed -n 's/.*,\([^,]*\.h\))/\1/p'); do
cp -v ${KSRC}/include/uapi/linux/$hdr ./uapi/linux/
cp -v ${KSRC}/include/uapi/linux/$hdr ./include/linux/
done

mkdir -p lib
Expand All @@ -32,6 +32,6 @@ for hdr in $(ls generated/ | grep -user.h); do
mv -v generated/$hdr ./include/ynl-c/${hdr/-user/}
(
cd generated
ln -sv ../include/ynl-c/${hdr/-user/} ./$hdr
ln -svf ../include/ynl-c/${hdr/-user/} ./$hdr
)
done

0 comments on commit 1654f91

Please sign in to comment.