add a package for ifxos (Infineon/Lantiq OS abstraction layer for drivers)
[openwrt/svn-archive/archive.git] / package / ifxos / patches / 100-portability.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -149,12 +149,12 @@ AC_ARG_ENABLE(targetincl,
4 echo Set the target image include path $enableval
5 AC_SUBST([TARGET_INCL_PATH],[$enableval])
6 else
7 - echo -e Set the default target image include path $DEFAULT_TARGET_INCL_PATH
8 + echo Set the default target image include path $DEFAULT_TARGET_INCL_PATH
9 AC_SUBST([TARGET_INCL_PATH],[$DEFAULT_TARGET_INCL_PATH])
10 fi
11 ],
12 [
13 - echo -e Set the default target image include path $DEFAULT_TARGET_INCL_PATH
14 + echo Set the default target image include path $DEFAULT_TARGET_INCL_PATH
15 AC_SUBST([TARGET_INCL_PATH],[$DEFAULT_TARGET_INCL_PATH])
16 ]
17 )
18 --- a/src/Makefile.am
19 +++ b/src/Makefile.am
20 @@ -610,7 +610,7 @@ if KERNEL_2_6
21 drv_ifxos_OBJS = "$(subst .c,.o,$(filter %.c,$(drv_ifxos_SOURCES)))"
22
23 drv_ifxos.ko: $(drv_ifxos_SOURCES)
24 - @echo -e "drv_ifxos: Making Linux 2.6.x kernel object"
25 + @echo "drv_ifxos: Making Linux 2.6.x kernel object"
26 if test ! -e common/ifxos_debug.c ; then \
27 echo "copy source files (as links only!)"; \
28 for f in $(filter %.c,$(drv_ifxos_SOURCES)); do \
29 @@ -618,10 +618,10 @@ drv_ifxos.ko: $(drv_ifxos_SOURCES)
30 cp -s $(addprefix @abs_srcdir@/,$$f) $(PWD)/`dirname $$f`/ ; \
31 done \
32 fi
33 - @echo -e "# drv_ifxos: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild
34 - @echo -e "obj-m := $(subst .ko,.o,$@)" >> $(PWD)/Kbuild
35 - @echo -e "$(subst .ko,,$@)-y := $(drv_ifxos_OBJS)" >> $(PWD)/Kbuild
36 - @echo -e "EXTRA_CFLAGS := $(CFLAGS) -DHAVE_CONFIG_H $(drv_ifxos_CFLAGS) $(DSL_DRIVER_INCL_PATH) -I@abs_srcdir@/include -I$(PWD)/include" >> $(PWD)/Kbuild
37 + @echo "# drv_ifxos: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild
38 + @echo "obj-m := $(subst .ko,.o,$@)" >> $(PWD)/Kbuild
39 + @echo "$(subst .ko,,$@)-y := $(drv_ifxos_OBJS)" >> $(PWD)/Kbuild
40 + @echo "EXTRA_CFLAGS := $(CFLAGS) -DHAVE_CONFIG_H $(drv_ifxos_CFLAGS) $(DSL_DRIVER_INCL_PATH) -I@abs_srcdir@/include -I$(PWD)/include" >> $(PWD)/Kbuild
41 $(MAKE) ARCH=@KERNEL_ARCH@ -C @KERNEL_BUILD_PATH@ O=@KERNEL_BUILD_PATH@ M=$(PWD) modules
42
43 clean-generic: