Changeset 37048


Ignore:
Timestamp:
2013-06-27T21:58:24+02:00 (5 years ago)
Author:
florian
Message:

buildroot: copy KENRNELNAME files to $(KDIR)

In order to support building both normal and initramfs kernel, we will
rebuild the wrappers around the vmlinux ELF binary, copy these with an
appropriate extension when they exist.

Signed-off-by: Florian Fainelli <florian@…>

File:
1 edited

Legend:

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

    r37047 r37048  
    119119OBJCOPY_STRIP = -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id 
    120120 
     121# AVR32 uses a non-standard location 
     122ifeq ($(LINUX_KARCH),avr32) 
     123IMAGES_DIR:=images 
     124endif 
     125 
    121126define Kernel/CopyImage 
    122127        $(KERNEL_CROSS)objcopy -O binary $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(LINUX_KERNEL)$(1) 
    123128        $(KERNEL_CROSS)objcopy $(OBJCOPY_STRIP) -S $(LINUX_DIR)/vmlinux $(KERNEL_BUILD_DIR)/vmlinux$(1).elf 
     129ifneq ($(subst ",,$(KERNELNAME)),) 
     130        #") 
     131        $(foreach k,$(subst ",,$(KERNELNAME)),$(CP) $(LINUX_DIR)/arch/$(LINUX_KARCH)/boot/$(IMAGES_DIR)/$(k) $(KERNEL_BUILD_DIR)/$(k)$(1);) 
     132        #") 
     133endif 
    124134endef 
    125135 
Note: See TracChangeset for help on using the changeset viewer.