Changeset 16046


Ignore:
Timestamp:
2009-05-25T13:14:06+02:00 (9 years ago)
Author:
kaloz
Message:

sibyte image generation cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/sibyte/image/Makefile

    r13875 r16046  
    1 #  
    2 # Copyright (C) 2007 OpenWrt.org 
     1# 
     2# Copyright (C) 2007-2009 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    88include $(INCLUDE_DIR)/image.mk 
    99 
    10 #define Image/Prepare 
    11 #       cp $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/zImage 
    12 #endef 
    13  
    1410define Image/BuildKernel 
    1511        cp $(LINUX_DIR)/vmlinux $(BIN_DIR)/openwrt-$(BOARD)-vmlinux 
     12# uImage 
     13        dd if=$(KDIR)/vmlinux of=$(KDIR)/openwrt-$(BOARD)-vmlinux bs=64k conv=sync 
     14        mkimage -A mips -O linux -T kernel -a 0x80100000 -C none -e \ 
     15                0x80100000 \ 
     16                -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ 
     17                -d $(KDIR)/openwrt-$(BOARD)-vmlinux $(BIN_DIR)/openwrt-$(BOARD)-uImage 
    1618endef 
    1719 
     
    3032 
    3133define Image/Build/squashfs 
    32     $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) 
     34        $(call prepare_generic_squashfs,$(KDIR)/root.squashfs) 
    3335        dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=131072 conv=sync 
    34         $(call Image/Build/slug,$(1)) 
    3536endef 
    3637 
Note: See TracChangeset for help on using the changeset viewer.