source: trunk/package/ifxos/patches/100-portability.patch @ 21158

Last change on this file since 21158 was 21158, checked in by ralph, 7 years ago

[ifxos] (oops - second try) fixed autoconf detection for 2.6.33 kernel

File size: 1.9 KB
  • src/Makefile.am

    a b if KERNEL_2_6 
    639639drv_ifxos_OBJS = "$(subst .c,.o,$(filter %.c,$(drv_ifxos_SOURCES)))" 
    640640 
    641641drv_ifxos.ko: $(drv_ifxos_SOURCES) 
    642         @echo -e "drv_ifxos: Making Linux 2.6.x kernel object" 
     642        @echo "drv_ifxos: Making Linux 2.6.x kernel object" 
    643643        if test ! -e common/ifxos_debug.c ; then \ 
    644644                echo "copy source files (as links only!)"; \ 
    645645                for f in $(filter %.c,$(drv_ifxos_SOURCES)); do \ 
    drv_ifxos.ko: $(drv_ifxos_SOURCES) 
    647647                        cp -s $(addprefix @abs_srcdir@/,$$f) $(PWD)/`dirname $$f`/ ; \ 
    648648                done \ 
    649649        fi 
    650         @echo -e "# drv_ifxos: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild 
    651         @echo -e "obj-m := $(subst .ko,.o,$@)"                  >> $(PWD)/Kbuild 
    652         @echo -e "$(subst .ko,,$@)-y := $(drv_ifxos_OBJS)"      >> $(PWD)/Kbuild 
    653         @echo -e "EXTRA_CFLAGS := $(CFLAGS) -DHAVE_CONFIG_H $(drv_ifxos_CFLAGS) $(DSL_DRIVER_INCL_PATH) -I@abs_srcdir@/include -I$(PWD)/include"        >> $(PWD)/Kbuild 
     650        @echo "# drv_ifxos: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild 
     651        @echo "obj-m := $(subst .ko,.o,$@)"                     >> $(PWD)/Kbuild 
     652        @echo "$(subst .ko,,$@)-y := $(drv_ifxos_OBJS)" >> $(PWD)/Kbuild 
     653        @echo "EXTRA_CFLAGS := $(CFLAGS) -DHAVE_CONFIG_H $(drv_ifxos_CFLAGS) $(DSL_DRIVER_INCL_PATH) -I@abs_srcdir@/include -I$(PWD)/include"   >> $(PWD)/Kbuild 
    654654        $(MAKE) ARCH=@KERNEL_ARCH@ -C @KERNEL_BUILD_PATH@ O=@KERNEL_BUILD_PATH@ M=$(PWD) modules 
    655655 
    656656clean-generic: 
  • configure.in

    a b dnl Set kernel build path 
    6464AC_ARG_ENABLE(kernelbuild, 
    6565        AS_HELP_STRING(--enable-kernelbuild=x,Set the target kernel build path (only for kernel 2.6.x)), 
    6666        [ 
    67                 if test -e $enableval/include/linux/autoconf.h; then 
     67                if test -e $enableval/include/linux/autoconf.h -o -e $enableval/include/generated/autoconf.h; then 
    6868                        AC_SUBST([KERNEL_BUILD_PATH],[$enableval]) 
    6969                else 
    7070                        AC_MSG_ERROR([The kernel build directory is not valid or not configured!]) 
Note: See TracBrowser for help on using the repository browser.