1 # SPDX-License-Identifier: GPL-2.0-only
5 ARCHDIR-
$(CONFIG_ARCH_ARMV7
) := armv7
6 ARCHDIR-
$(CONFIG_ARCH_X86
) := x86
8 # Only Intel chipsets supported, currently.
9 OBJ-
$(CONFIG_SOUTHBRIDGE_INTEL_COMMON
) += uio_usbdebug_intel.o
11 PROGRAM
:= uio_usbdebug
13 CB_SRC
:= $(shell realpath ..
/..
/src
)
14 CB_SOURCES
:= drivers
/usb
/ehci_debug.c
17 drivers
/usb
/ehci_debug.h \
20 include/device
/device.h
23 drivers
/usb
/pci_ehci.o \
27 $(patsubst %.c
,%.o
,$(CB_SOURCES
))
29 KCONFIG_H
:= ..
/..
/src
/include/kconfig.h
33 -Wall
-Wextra
-Werror \
34 -Wno-unused-parameter
-Wno-error
=sign-compare
37 -I..
/..
/src
/include/ -I..
/..
/src
/arch
/$(ARCHDIR-y
)/include/ \
38 -I..
/..
/build
/ -include$(KCONFIG_H
)
44 $(PROGRAM
): $(OBJECTS
)
45 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$(OBJECTS
) $(LIBS
)
47 $(CB_SOURCES
) $(CB_INCLUDES
):
49 @ln
-sf
$(CB_SRC
)/$@
$@
51 $(OBJECTS
): $(CONFIG_H
) $(CB_INCLUDES
) $(INCLUDES
)
54 -@
rm -rf
$(CB_SOURCES
) $(CB_INCLUDES
) $(OBJECTS
) $(PROGRAM
)