Changeset 3709

Show
Ignore:
Timestamp:
03/10/08 15:58:52 (9 months ago)
Author:
n0-1
Message:

fon2100 kernel stripping
* output binary since no elf-loader support in redboot
* some documentation about the kernel patching mechanism

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/mk/kernel-build.mk

    r3663 r3709  
    1515 
    1616KERNEL_IDIR:=$(LINUX_BUILD_DIR)/kernel-ipkg 
     17 
     18# applying kernel patches: 
     19# 0. cwd is target/linux/${BOARD} 
     20# 1. if ../generic-${KERNEL} (i.e. generic-2.4 or generic-2.6) exists, 
     21#    apply patches from there 
     22# 2. if ../generic-${UNAME_R} (i.e. e.g. generic-2.6.23.12) exists, 
     23#    apply patches from there 
     24# 3. if ./patches (vendor-specific stuff) exists, apply contained patches 
     25# 4. if ./${DEVICE}/patches (device-specific stuff) exists, apply the patches 
    1726 
    1827$(LINUX_BUILD_DIR)/.extract: ${_CHECKSUM_COOKIE} 
     
    8897        $(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ $(MAKE_TRACE) 
    8998else 
     99ifeq ($(BOARD),atheros) 
     100        $(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ $(MAKE_TRACE) 
     101else 
    90102        $(TARGET_CROSS)objcopy -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ $(MAKE_TRACE) 
     103endif 
    91104endif 
    92105endif