All of lore.kernel.org
 help / color / mirror / Atom feed
* Regarding compat_autoconf.h generation
@ 2012-10-27 14:25 Ozan Çağlayan
  2012-10-27 15:01 ` Luis R. Rodriguez
  2012-10-28 12:50 ` Hauke Mehrtens
  0 siblings, 2 replies; 4+ messages in thread
From: Ozan Çağlayan @ 2012-10-27 14:25 UTC (permalink / raw)
  To: backports; +Cc: mcgrof

Hi,

In the nouveau DRM driver there is a CONFIG_NOUVEAU_DEBUG which has to
be an integer between 0 and 7 with the default as 3.
Currently gen-compat-autoconf.sh defines this as a string by default:

           *) # Assume string
 61                 # XXX: add better checks to make sure what was on
 62                 # the right was indeed a string
 63                 echo "#ifndef $VAR"
 64                 echo "#define $VAR \"$VALUE\""
 65                 echo "#endif /* $VAR */ "
 66                 ;;

Is it OK to modify the script to allow defining integers? Also, it
seems that there is no difference with =m and =y:

              y)
 51                 echo "#ifndef $VAR"
 52                 echo "#define $VAR 1"
 53                 echo "#endif /* $VAR */ "
 54                 ;;
 55         m)
 56                 echo "#ifndef $VAR"
 57                 echo "#define $VAR 1"
 58                 echo "#endif /* $VAR */ "
 59                 ;;

How come this doesn't break things? Both =y and =m exist in config.mk.

Thanks!

-- 
Ozan Çağlayan
Research Assistant
Galatasaray University - Computer Engineering Dept.
http://www.ozancaglayan.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-28 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-27 14:25 Regarding compat_autoconf.h generation Ozan Çağlayan
2012-10-27 15:01 ` Luis R. Rodriguez
2012-10-28 12:50 ` Hauke Mehrtens
2012-10-28 14:50   ` Ozan Çağlayan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.