diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -238,6 +238,12 @@ $(info (!!) Edit the file .config to override the default configuration.) | |||
238 | $(error Cannot build without access to the LITMUS^RT kernel source) | 238 | $(error Cannot build without access to the LITMUS^RT kernel source) |
239 | endif | 239 | endif |
240 | 240 | ||
241 | kernel-unistd-hdrs := $(foreach file,${unistd-headers},${LITMUS_KERNEL}/$(file)) | ||
242 | hdr-ok := $(shell grep '\#include "litmus/unistd' ${kernel-unistd-hdrs} ) | ||
243 | ifeq ($(strip $(hdr-ok)),) | ||
244 | $(error Your kernel headers do not seem to be LITMUS^RT headers) | ||
245 | endif | ||
246 | |||
241 | config-ok := $(shell test -f "${LITMUS_KERNEL}/${word 1,${unistd-headers}}" \ | 247 | config-ok := $(shell test -f "${LITMUS_KERNEL}/${word 1,${unistd-headers}}" \ |
242 | || echo fail ) | 248 | || echo fail ) |
243 | ifneq ($(config-ok),) | 249 | ifneq ($(config-ok),) |