klibc-bot for Ben Hutchings
2019-Feb-01 23:21 UTC
[klibc] [klibc:master] Makefile: Check for $(KLIBCKERNELSRC)/include directory
Commit-ID: 0959d3e5a37096f4f110362b46cd7ecc678bf44c Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=0959d3e5a37096f4f110362b46cd7ecc678bf44c Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Fri, 1 Feb 2019 23:51:24 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 2 Feb 2019 00:09:23 +0100 [klibc] Makefile: Check for $(KLIBCKERNELSRC)/include directory We need installed UAPI headers, so check slightly further. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a60161cc..0df463a5 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ $(objtree)/.config: $(srctree)/defconfig @echo "defconfig has changed, please remove or edit .config" @false -$(KLIBCKERNELSRC): +$(KLIBCKERNELSRC)/include: @echo "Cannot find kernel UAPI headers." @echo "Either make a 'linux' symlink point to the usr subdirectory " @echo "of a kernel tree with headers installed for the $(KLIBCARCH) " @@ -111,10 +111,10 @@ klibc.spec: klibc.spec.in $(KLIBCSRC)/version sed -e 's/@@VERSION@@/$(VERSION)/g' < $< > $@ # Build klcc - it is the first target -klcc: $(objtree)/.config $(KLIBCKERNELSRC) +klcc: $(objtree)/.config $(KLIBCKERNELSRC)/include $(Q)$(MAKE) $(klibc)=klcc -klibc: $(objtree)/.config $(KLIBCKERNELSRC) +klibc: $(objtree)/.config $(KLIBCKERNELSRC)/include $(Q)$(MAKE) $(klibc)=. test: klibc