Skip to content

Commit

Permalink
move ynl.h into 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 1654f91 commit cb1abb7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0

CC=gcc
CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow
CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow \
-Iinclude/ynl-c/
ifeq ("$(DEBUG)","1")
CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
endif
Expand Down
2 changes: 1 addition & 1 deletion generated/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

CC=gcc
CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow \
-I../ -idirafter $(UAPI_PATH)
-I../include/ynl-c -idirafter $(UAPI_PATH)
ifeq ("$(DEBUG)","1")
CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
endif
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion update-from-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ for hdr in $(cat Makefile.deps | sed -n 's/.*,\([^,]*\.h\))/\1/p'); do
done

mkdir -p lib
cp -v ${KSRC}/tools/net/ynl/lib/*.{c,h} ./
cp -v ${KSRC}/tools/net/ynl/lib/*.c ./

mkdir -p generated
cp -v ${KSRC}/tools/net/ynl/generated/*.{c,h} ./generated/

mkdir -p include/ynl-c
cp -v ${KSRC}/tools/net/ynl/lib/*.h ./include/ynl-c/
for hdr in $(ls generated/ | grep -user.h); do
mv -v generated/$hdr ./include/ynl-c/${hdr/-user/}
(
Expand Down

0 comments on commit cb1abb7

Please sign in to comment.