Changeset 27183


Ignore:
Timestamp:
2011-06-15T23:10:33+02:00 (7 years ago)
Author:
hauke
Message:

Properly extract KERNEL_PATCHVER for linux 3.0

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel-version.mk

    r27104 r27183  
    3838KERNEL_BASE=$(firstword $(subst -, ,$(LINUX_VERSION))) 
    3939KERNEL=$(call merge_version,$(wordlist 1,2,$(call split_version,$(KERNEL_BASE)))) 
    40 KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE)))) 
     40ifeq ($(firstword $(call split_version,$(KERNEL_BASE))),2) 
     41  KERNEL_PATCHVER=$(call merge_version,$(wordlist 1,3,$(call split_version,$(KERNEL_BASE)))) 
     42else 
     43  KERNEL_PATCHVER=$(KERNEL) 
     44endif 
    4145 
Note: See TracChangeset for help on using the changeset viewer.