]> git.sur5r.net Git - u-boot/blobdiff - drivers/bios_emulator/Makefile
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / drivers / bios_emulator / Makefile
index 52a2ceb4759ae181c95a5d0c2d17c84a245d915b..d9cf6ad5d1b67a62c9af7d6b2dd44b2b1bf7a252 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0+
+
 X86DIR  = x86emu
 
 obj-y = atibios.o biosemu.o besys.o bios.o \
@@ -8,8 +10,5 @@ obj-y = atibios.o biosemu.o besys.o bios.o \
        $(X86DIR)/sys.o \
        $(X86DIR)/debug.o
 
-EXTRA_CFLAGS += -I. -I./include \
-       -D__PPC__  -D__BIG_ENDIAN__
-
-CFLAGS += $(EXTRA_CFLAGS)
-CPPFLAGS += $(EXTRA_CFLAGS)
+ccflags-y := -I$(srctree)/$(src) -I$(srctree)/$(src)/include \
+       $(if $(CONFIG_PPC),-D__PPC__  -D__BIG_ENDIAN__)