aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-12-19 03:42:12 +0059
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-03-29 10:16:17 +0200
commit2f897d90b7a0d5e86d45382e0191446976b8c965 (patch)
tree350a78ddcd7d42db4a29252a64e668e6b65080f4
parente4efb34f657859bc0f8922dfb9507e66451e6ebe (diff)
downloadbuild-2f897d90b7a0d5e86d45382e0191446976b8c965.tar.gz
core/main.mk: Add code for syncing bionic headers with kernel headers
This syncs the kernel headers used by bionic with the headers of the kernel being built - making sure the kernel and userland agree about the content and size of data structures. Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--core/main.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/main.mk b/core/main.mk
index 32f2b302b3..30079c941d 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -167,6 +167,9 @@ $(shell echo 'VERSIONS_CHECKED := $(VERSION_CHECK_SEQUENCE_NUMBER)' \
> $(OUT_DIR)/versions_checked.mk)
endif
+$(info syncing Bionic headers with kernel headers)
+$(shell if test -d $(TOPDIR)/kernel; then WD=`pwd`; cd $(TOPDIR)/kernel; $(MAKE) headers_install ARCH=arm INSTALL_HDR_PATH=$(TOPDIR)/external/kernel-headers/current; cd .. ; ./bionic/libc/kernel/tools/update_all.py $(TOPDIR)/external/kernel-headers/current; cd $$WD; fi)
+
# These are the modifier targets that don't do anything themselves, but
# change the behavior of the build.
# (must be defined before including definitions.make)