Commit 1f8b66c5 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Warn on obsolete export-objs use

Setting export-objs is not necessary anymore, so warn on encountering it 
to prevent it from creeping back in ;)
  
Also, make the error when we find someone still using O_TARGET non-fatal,
so that people sharing stuff between 2.4 and 2.5 don't have more hassle
than necessary.
parent ac844bd1
...@@ -15,8 +15,12 @@ include $(obj)/Makefile ...@@ -15,8 +15,12 @@ include $(obj)/Makefile
include scripts/Makefile.lib include scripts/Makefile.lib
ifdef export-objs
$(warning kbuild: $(obj)/Makefile - Usage of export-objs is obsolete in 2.5. Please fix!)
endif
ifdef O_TARGET ifdef O_TARGET
$(error kbuild: $(obj)/Makefile - Usage of O_TARGET := $(O_TARGET) is obsolete in 2.5. Please fix!) $(warning kbuild: $(obj)/Makefile - Usage of O_TARGET := $(O_TARGET) is obsolete in 2.5. Please fix!)
endif endif
ifdef L_TARGET ifdef L_TARGET
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment