drm: img-rogue: Support make 4.4 or later version 25/317825/1 accepted/tizen/unified/20250108.170438 accepted/tizen/unified/x/20250109.095243 accepted/tizen/unified/x/asan/20250113.002300
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 8 Jan 2025 08:21:41 +0000 (17:21 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 8 Jan 2025 08:21:44 +0000 (17:21 +0900)
The make 4.4 introduced .NOTINTERMEDIATE and it is mutually
exclusive with .SECONDARY. So, it should be selected with make
version.

Change-Id: I58bc8a0b4d42a47472b6aae32d2de13efe89c160
Ref: commit 875ef1a57f32 ("kbuild: use .NOTINTERMEDIATE for future GNU Make versions")
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/gpu/drm/img/img-rogue/Makefile

index ee37ef8cadbfbe485058c6683bb09b434758f9da..fe3bad2b77eaa9cba73c3c9d40edb19acdb04b00 100644 (file)
@@ -73,7 +73,11 @@ WINDOW_SYSTEM=nulldrmws
 #include $(OUT)/config_kernel.mk
 include $(srctree)/$(src)/config_kernel.mk
 
+ifneq ($(and $(filter notintermediate, $(.FEATURES)),$(filter-out 4.4,$(MAKE_VERSION))),)
+.NOTINTERMEDIATE:
+else
 .SECONDARY:
+endif
 
 define symlink-source-file
 @if [ ! -e $(dir $@) ]; then mkdir -p $(dir $@); fi