mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-29 19:40:16 +01:00
Only build agp portion of the drm when agp is detected
This commit is contained in:
parent
1070b3d2ce
commit
a63f6b168c
2 changed files with 13 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ CFLAGS= -O2 $(WARNINGS)
|
|||
WARNINGS= -Wall -Wwrite-strings -Wpointer-arith -Wcast-align \
|
||||
-Wstrict-prototypes -Wshadow -Wnested-externs \
|
||||
-Winline -Wpointer-arith
|
||||
MODCFLAGS= $(CFLAGS) -DDRM_AGP -D__KERNEL__ -DMODULE -fomit-frame-pointer
|
||||
MODCFLAGS= $(CFLAGS) -D__KERNEL__ -DMODULE -fomit-frame-pointer
|
||||
PRGCFLAGS= $(CFLAGS) -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L \
|
||||
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE \
|
||||
-I../../../../../../include -I../../../../../../../../include \
|
||||
|
|
@ -114,7 +114,10 @@ SMP := $(shell gcc -E -nostdinc -I$(TREE) picker.c 2>/dev/null \
|
|||
| grep -s 'SMP = ' | cut -d' ' -f3)
|
||||
MODVERSIONS := $(shell gcc -E -I $(TREE) picker.c 2>/dev/null \
|
||||
| grep -s 'MODVERSIONS = ' | cut -d' ' -f3)
|
||||
all::;@echo KERNEL HEADERS IN $(TREE): SMP=${SMP} MODVERSIONS=${MODVERSIONS}
|
||||
AGP := $(shell gcc -E -nostdinc -I$(TREE) picker.c 2>/dev/null \
|
||||
| grep -s 'AGP = ' | cut -d' ' -f3)
|
||||
all::;@echo KERNEL HEADERS IN $(TREE): SMP=${SMP} MODVERSIONS=${MODVERSIONS} \
|
||||
AGP=${AGP}
|
||||
all:: $(LIBS) $(MODS) $(PROGS)
|
||||
endif
|
||||
|
||||
|
|
@ -127,6 +130,9 @@ endif
|
|||
ifeq ($(MODVERSIONS),1)
|
||||
MODCFLAGS += -DMODVERSIONS -include $(TREE)/linux/modversions.h
|
||||
endif
|
||||
ifeq ($(AGP),1)
|
||||
MODCFLAGS += -DDRM_AGP
|
||||
endif
|
||||
|
||||
# **** End of configuration
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,11 @@
|
|||
#define CONFIG_MODVERSIONS 0
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_AGP_MODULE
|
||||
#define CONFIG_AGP_MODULE 0
|
||||
#endif
|
||||
|
||||
SMP = CONFIG_SMP
|
||||
MODVERSIONS = CONFIG_MODVERSIONS
|
||||
AGP = CONFIG_AGP_MODULE
|
||||
RELEASE = UTS_RELEASE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue