diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2005-03-28 19:39:23 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2005-03-28 19:39:23 +0000 |
commit | 36b9cd6acd0607f0b9ae8b58ef74a12786faf938 (patch) | |
tree | c57f210e1737e6fefd97492e849cc593ec59532a /drivers.m4 | |
parent | b6dd247d8ae45694367c16be7fae65f084a18961 (diff) | |
download | lcd4linux-36b9cd6acd0607f0b9ae8b58ef74a12786faf938.tar.gz |
[lcd4linux @ 2005-03-28 19:39:14 by reinelt]
HD44780/I2C patch from Luis merged (still does not work for me)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@519 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drivers.m4')
-rw-r--r-- | drivers.m4 | 30 |
1 files changed, 26 insertions, 4 deletions
@@ -137,12 +137,18 @@ done AC_MSG_RESULT([done]) -PARPORT="no" -SERIAL="no" + +# generic display drivers TEXT="no" GRAPHIC="no" IMAGE="no" +# generiv I/O drivers +PARPORT="no" +SERIAL="no" +I2C="no" + + if test "$BECKMANNEGLE" = "yes"; then TEXT="yes" SERIAL="yes" @@ -189,6 +195,7 @@ fi if test "$HD44780" = "yes"; then TEXT="yes" PARPORT="yes" + I2C="yes" DRIVERS="$DRIVERS drv_HD44780.o" AC_DEFINE(WITH_HD44780,1,[HD44780 driver]) fi @@ -287,14 +294,16 @@ if test "$X11" = "yes"; then GRAPHIC="yes" DRIVERS="$DRIVERS drv_X11.o" DRVLIBS="$DRVLIBS -L$ac_x_libraries -lX11" - AC_DEFINE(WITH_X11,1,[X11 driver]) + AC_DEFINE(WITH_X11, 1, [X11 driver]) fi fi + if test "$DRIVERS" = ""; then - AC_MSG_ERROR([You should include at least one driver...]) + AC_MSG_ERROR([You should activate at least one driver...]) fi + # generic text driver if test "$TEXT" = "yes"; then DRIVERS="$DRIVERS drv_generic_text.o" @@ -306,6 +315,7 @@ if test "$GRAPHIC" = "yes"; then DRIVERS="$DRIVERS drv_generic_graphic.o" fi + # generic parport driver if test "$PARPORT" = "yes"; then DRIVERS="$DRIVERS drv_generic_parport.o" @@ -316,5 +326,17 @@ if test "$SERIAL" = "yes"; then DRIVERS="$DRIVERS drv_generic_serial.o" fi +# generic i2c driver +if test "$I2C" = "yes"; then + if test "$has_i2c" = true; then + AC_DEFINE(WITH_I2C, 1, [I2C bus driver]) + DRIVERS="$DRIVERS drv_generic_i2c.o" + else + I2C="no" + AC_MSG_WARN(I2C include files not found: I2C bus driver disabled) + fi +fi + + AC_SUBST(DRIVERS) AC_SUBST(DRVLIBS) |