Skip to content

Commit cb1abb7

Browse files
committed
move ynl.h into include/ too
Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 1654f91 commit cb1abb7

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
CC=gcc
4-
CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow
4+
CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow \
5+
-Iinclude/ynl-c/
56
ifeq ("$(DEBUG)","1")
67
CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
78
endif

generated/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
CC=gcc
44
CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow \
5-
-I../ -idirafter $(UAPI_PATH)
5+
-I../include/ynl-c -idirafter $(UAPI_PATH)
66
ifeq ("$(DEBUG)","1")
77
CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
88
endif
File renamed without changes.

ynl.h include/ynl-c/ynl.h

File renamed without changes.

update-from-kernel.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ for hdr in $(cat Makefile.deps | sed -n 's/.*,\([^,]*\.h\))/\1/p'); do
2222
done
2323

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

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

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

0 commit comments

Comments
 (0)