summaryrefslogtreecommitdiff
path: root/toolchain/kernel-headers/Makefile
blob: e62b33e2d217194b82a4dc229b0e650374136762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk
include ../rules.mk
include $(TOPDIR)/mk/linux.mk
include ${TOPDIR}/mk/buildhlp.mk

$(WRKBUILD)/.headers:
	$(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=$(ARCH) V=1 \
		headers_check
	$(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=$(ARCH) V=1 \
		INSTALL_HDR_PATH=$(STAGING_DIR)/usr \
		headers_install
	@-find $(STAGING_DIR)/usr/include -name .install -delete
	@-find $(STAGING_DIR)/usr/include -name ..install.cmd -delete
	touch $@

include ${TOPDIR}/mk/toolchain.mk