soc/intel/xeon_sp/cpx: Fix PCU device IDs
[coreboot.git] / util / uio_usbdebug / Makefile
blobaf1cc8e1ecada344c747fbeeb611359cf44cfdbf
1 # SPDX-License-Identifier: GPL-2.0-only
3 include ../../.config
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
15 CB_INCLUDES := \
16 drivers/usb/ehci.h \
17 drivers/usb/ehci_debug.h \
18 drivers/usb/usb_ch9.h
19 INCLUDES := \
20 include/device/device.h
21 OBJECTS := \
22 uio_usbdebug.o \
23 drivers/usb/pci_ehci.o \
24 console/printk.o \
25 lib/cbmem.o \
26 $(OBJ-y) \
27 $(patsubst %.c,%.o,$(CB_SOURCES))
29 KCONFIG_H := ../../src/include/kconfig.h
31 CFLAGS += \
32 -m32 -g \
33 -Wall -Wextra -Werror \
34 -Wno-unused-parameter -Wno-error=sign-compare
35 CPPFLAGS += \
36 -Iinclude/ \
37 -I../../src/include/ -I../../src/arch/$(ARCHDIR-y)/include/ \
38 -I../../build/ -include$(KCONFIG_H)
40 LIBS := -lpci -lz
42 all: $(PROGRAM)
44 $(PROGRAM): $(OBJECTS)
45 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
47 $(CB_SOURCES) $(CB_INCLUDES):
48 @mkdir -p $(dir $@)
49 @ln -sf $(CB_SRC)/$@ $@
51 $(OBJECTS): $(CONFIG_H) $(CB_INCLUDES) $(INCLUDES)
53 clean:
54 -@rm -rf $(CB_SOURCES) $(CB_INCLUDES) $(OBJECTS) $(PROGRAM)
56 .PHONY: all clean