# all-uapi.mk # currently resides in tools/build/ # # before running 'make -f all-uapi.mk', # run (from top of kernel tree): make ARCH=arch O=dir headers_check # so that the uapi headers will be installed. srctree=../.. CC=gcc all: all-uapi.h all-uapi.o all-uapi.h: all-uapi.mk hdr-fix-lines.pl rm -f all-uapi.h touch all-uapi.h # find $(srctree)/xx64/usr/include/uapi -type f | grep -v \\.orig | find $(srctree)/xx64/usr/include -type f | grep -v \\.orig | \ ./hdr-fix-lines.pl >>all-uapi.h all-uapi.o: all-uapi.h $(CC) -I../../xx64/usr/include all-uapi.c -o all-uapi.o