Skip to contentSkip to conversation

matroxfb_maven not being built in 2.4.21-pre5

DISCUSSION Ryan Underwood 2 participants 2 messages Mar 14, 2003 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Hello,

I compiled a fresh 2.4.21-pre5 yesterday after using make oldconfig on my old .config. Everything went smoothly for the most part, except the matroxfb_maven.o and matroxfb_crtc2.o were not built.

The following changes to the Makefile are relevant:

< obj-$(CONFIG_FB_MATROX_MAVEN) += matroxfb_maven.o matroxfb_crtc2.o
< obj-$(CONFIG_FB_MATROX_G450) += matroxfb_g450.o matroxfb_crtc2.o
---

Quoted 7 lines

ifeq ($(CONFIG_FB_MATROX_MAVEN),y)
obj-$(CONFIG_FB_MATROX) += matroxfb_maven.o matroxfb_crtc2.o
endif
ifeq ($(CONFIG_FB_MATROX_G450),y)
obj-$(CONFIG_FB_MATROX) += matroxfb_g450.o matroxfb_crtc2.o
endif
obj-$(CONFIG_FB_MATROX_PROC) += matroxfb_proc.o

I think the problem stems from the fact that if maven is compiled as a module, only CONFIG_FB_MATROX_MAVEN_MODULE is defined, not CONFIG_FB_MATROX_MAVEN. In any case, if I explicitly add the objects to be compiled, they compile and work fine. So it looks like the conditional might need a little change.

Also, there does not seem to be a menuconfig entry for CONFIG_FB_MATROX_PROC. Should there be?

Signature · 1 line
Ryan Underwood, <nemesis at icequake.net>, icq=10317253
#1 lore raw
Quoted 9 lines · Ryan Underwood

Hello,

I compiled a fresh 2.4.21-pre5 yesterday after using make oldconfig on my old .config. Everything went smoothly for the most part, except the matroxfb_maven.o and matroxfb_crtc2.o were not built.

Also, there does not seem to be a menuconfig entry for CONFIG_FB_MATROX_PROC. Should there be?

Both Config.in and Makefile are out of sync with current matroxfb code. Config.in is fixed in Alan's kernels, but Makefile is wrong in both (my mistake, only 2.5.50 has correct). Please apply this.
Petr Vandrovec [email protected]

drivers/video/Config.in +8 -2
diff -urN a/drivers/video/Config.in b/drivers/video/Config.in
@@ -124,14 +124,20 @@
 	 if [ "$CONFIG_FB_MATROX" != "n" ]; then
 	    bool '    Millennium I/II support' CONFIG_FB_MATROX_MILLENIUM
 	    bool '    Mystique support' CONFIG_FB_MATROX_MYSTIQUE
-	    bool '    G100/G200/G400/G450/G550 support' CONFIG_FB_MATROX_G100
+ 	    bool '    G100/G200/G400/G450/G550 support' CONFIG_FB_MATROX_G450
+ 	    if [ "$CONFIG_FB_MATROX_G450" = "n" ]; then
+ 	       bool '    G100/G200/G400 support' CONFIG_FB_MATROX_G100A
+ 	    fi
+ 	    if [ "$CONFIG_FB_MATROX_G450" = "y" -o "$CONFIG_FB_MATROX_G100A" = "y" ]; then
+ 	       define_bool CONFIG_FB_MATROX_G100 y
+ 	    fi
             if [ "$CONFIG_I2C" != "n" ]; then
 	       dep_tristate '      Matrox I2C support' CONFIG_FB_MATROX_I2C $CONFIG_FB_MATROX $CONFIG_I2C_ALGOBIT
 	       if [ "$CONFIG_FB_MATROX_G100" = "y" ]; then
 	          dep_tristate '      G400 second head support' CONFIG_FB_MATROX_MAVEN $CONFIG_FB_MATROX_I2C
 	       fi
             fi
-            dep_tristate '      G450/G550 second head support (mandatory for G550)' CONFIG_FB_MATROX_G450 $CONFIG_FB_MATROX_G100
+            dep_tristate '    Matrox /proc interface' CONFIG_FB_MATROX_PROC $CONFIG_FB_MATROX
 	    bool '    Multihead support' CONFIG_FB_MATROX_MULTIHEAD
 	 fi
 	 tristate '  ATI Mach64 display support (EXPERIMENTAL)' CONFIG_FB_ATY
drivers/video/matrox/Makefile +2 -6
diff -urN a/drivers/video/matrox/Makefile b/drivers/video/matrox/Makefile
@@ -12,15 +12,11 @@
 # Each configuration option enables a list of files.
 
 my-obj-$(CONFIG_FB_MATROX_G100)	  := g450_pll.o
+my-obj-$(CONFIG_FB_MATROX_G450)   += matroxfb_g450.o matroxfb_crtc2.o
 
 obj-$(CONFIG_FB_MATROX)           += matroxfb_base.o matroxfb_accel.o matroxfb_DAC1064.o matroxfb_Ti3026.o matroxfb_misc.o $(my-obj-y)
 obj-$(CONFIG_FB_MATROX_I2C)       += i2c-matroxfb.o
-ifeq ($(CONFIG_FB_MATROX_MAVEN),y)
-  obj-$(CONFIG_FB_MATROX)     += matroxfb_maven.o matroxfb_crtc2.o
-endif
-ifeq ($(CONFIG_FB_MATROX_G450),y)
-  obj-$(CONFIG_FB_MATROX)	  += matroxfb_g450.o matroxfb_crtc2.o
-endif
+obj-$(CONFIG_FB_MATROX_MAVEN)     += matroxfb_maven.o matroxfb_crtc2.o
 obj-$(CONFIG_FB_MATROX_PROC)	  += matroxfb_proc.o
 
 include $(TOPDIR)/Rules.make