]> git.sur5r.net Git - u-boot/blobdiff - drivers/bios_emulator/Makefile
usb: sunxi: ohci: make ohci_t the first member in private data
[u-boot] / drivers / bios_emulator / Makefile
index 6f74fdc23092056c4492e3514d5ab461e4e7df47..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,9 +10,5 @@ obj-y = atibios.o biosemu.o besys.o bios.o \
        $(X86DIR)/sys.o \
        $(X86DIR)/debug.o
 
-EXTRA_CFLAGS += -I. -I./include -I$(TOPDIR)/include \
-       -D__PPC__  -D__BIG_ENDIAN__
-
-CFLAGS += $(EXTRA_CFLAGS)
-HOSTCFLAGS += $(EXTRA_CFLAGS)
-CPPFLAGS += $(EXTRA_CFLAGS)
+ccflags-y := -I$(srctree)/$(src) -I$(srctree)/$(src)/include \
+       $(if $(CONFIG_PPC),-D__PPC__  -D__BIG_ENDIAN__)