Changeset 24394


Ignore:
Timestamp:
2010-12-09T18:18:41+01:00 (7 years ago)
Author:
jow
Message:

[package] kernel: fix raid module packaging on newer kernels (#8384)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/modules/block.mk

    r24214 r24394  
    309309        $(LINUX_DIR)/crypto/async_tx/async_pq.$(LINUX_KMOD_SUFFIX) \ 
    310310        $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.$(LINUX_KMOD_SUFFIX) \ 
    311         $(LINUX_DIR)/drivers/md/raid6_pq.$(LINUX_KMOD_SUFFIX) \ 
    312311        $(LINUX_DIR)/drivers/md/raid456.$(LINUX_KMOD_SUFFIX) 
     312  # Additional files with kernel-dependent locations or presence 
     313  # For Linux >= 2.6.36 
     314  ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.36)), 1) 
     315    FILES+= \ 
     316        $(LINUX_DIR)/lib/raid6/raid6_pq.$(LINUX_KMOD_SUFFIX) 
     317  # For Linux < 2.6.36 
     318  else 
     319    FILES+= \ 
     320        $(LINUX_DIR)/drivers/md/raid6_pq.$(LINUX_KMOD_SUFFIX) 
     321  endif 
    313322  AUTOLOAD:=$(call AutoLoad,28, xor async_tx async_memcpy async_xor raid6_pq async_pq async_raid6_recov raid456) 
    314323endef 
Note: See TracChangeset for help on using the changeset viewer.