Changeset 10123


Ignore:
Timestamp:
2008-01-06T03:12:37+01:00 (8 years ago)
Author:
nbd
Message:

Remove LINUX_2_6 dependency from qc-usb

This patch removes LINUX_2_6 dependency from qc-usb for those of us who
still have broadcom chipsets as qc-usb works fine on LINUX_2_4 too. This
compiles with both 2.4 and 2.6 kernels selected, and although i do not
have a Kamikaze svn system, the same changes (albeit without the new
package name changes in svn vs 7.09) work fine on my running 2.4 system
with a Quickcam Express card (older model).

Signed-off-by: Misha Koshelev <mk144210 at bcm dot edu>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/qc-usb/Makefile

    r8856 r10123  
    4040  SUBMENU:=Video Support 
    4141  TITLE:=QuickCam Express USB webcam support 
    42   DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core kmod-video-core 
     42  DEPENDS:=@USB_SUPPORT +kmod-usb-core kmod-video-core 
    4343  FILES:=$(PKG_BUILD_DIR)/quickcam.$(LINUX_KMOD_SUFFIX) 
    4444  AUTOLOAD:=$(call AutoLoad,90,quickcam) 
     
    5050endef 
    5151 
     52ifeq ($(KERNEL),2.4) 
     53  ifeq ($(LINUX_KARCH),i386) 
     54    KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time 
     55  endif 
     56  ifeq ($(LINUX_KARCH),mips) 
     57    KERNEL_C_OPTS:= -Os -G 0 -mlong-calls -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap 
     58  endif 
     59endif 
     60 
    5261ifneq ($(CONFIG_PACKAGE_kmod-video-quickcam),) 
    5362  define Build/Compile/kmod 
    54         $(MAKE) -C $(LINUX_DIR) \ 
     63        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     64                LINUX_DIR="$(LINUX_DIR)" \ 
    5565                ARCH="$(LINUX_KARCH)" \ 
    5666                CROSS_COMPILE="$(TARGET_CROSS)" \ 
    57                 SUBDIRS="$(PKG_BUILD_DIR)" \ 
    58                 modules 
     67                CC="$(TARGET_CC)" \ 
     68                LD="$(TARGET_CC) -nodefaultlibs -nostartfiles" \ 
     69                USER_OPT="$(KERNEL_C_OPTS)" \ 
     70                quickcam.$(LINUX_KMOD_SUFFIX) 
    5971  endef 
    6072endif 
Note: See TracChangeset for help on using the changeset viewer.