커널 patch-2.6.23-git10 부터는 그 이전보다 훨씬 까다롭게 커널 또는 커널 모듈 make 환경변수를 검사합니다.
[quote:1hkjfxu3]commit 0c53c8e6eb456cde30f2305421c605713856abc8
Author: Sam Ravnborg <sam@neptun.(none)>
Date: Sun Oct 14 22:26:53 2007 +0200
kbuild: check for wrong use of CFLAGS
External modules have in a few cases modifed gcc option
by modifying CFLAGS. This has never been documented and
was a bad practice.
With the check to use KBUILD_CFLAGS it will no longer work
so we better error out and tell what was wrong as a service
to the external module users.
This check can be overruled if
KBUILD_NOPEDANTIC is set to something.
Addid this possibility may allow older external
module to build without any code modifications but potentially
only loosing some un-important gcc options.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>[/quote:1hkjfxu3]
즉 CFLAGS이 수정되지 않았나 체크하지요.
/usr/src/linux/scripts/Makefile.build파일을 보면 알수 있습니다.
[quote:1hkjfxu3]# For backward compatibility check that these variables do not change
save-cflags := $(CFLAGS)
If the save-* variables changed error out
ifeq ($(KBUILD_NOPEDANTIC),)
ifneq ("$(save-cflags)","$(CFLAGS)")
$(error CFLAGS was changed in "$(kbuild-file)". Fix it to use EXTRA_CFLAGS)
endif
endif[/quote:1hkjfxu3]
환경 변수 KBUILD_NOPEDANTIC 이 세팅 되지 않았다면 수정된 CFLAGS는 무시되고
Fix it to use EXTRA_CFLAGS 에러를 냅니다.
해결방법은 위 경고대로
CFLAGS 을 바로 고치지 말고 EXTRA_CFLAGS 에 필요한 옵션을 넣든지
아니면
export KBUILD_NOPEDANTIC=1 을 세팅해서
까다롭게 커널 이나 커널 모듈 Makefile을 체크하지 않도록 한뒤 다시 make해보세요.