2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/image.mk
15 define Image/BuildKernel
16 $(TARGET_CROSS)objcopy -O binary -R .bss -R .note -R .comment \
17 -R .note.gnu.build-id -S $(LINUX_DIR)/vmlinux $(KDIR)/vmlinux.bin
18 mkimage -A m68k -O linux -T kernel -a 0x00020000 -e 0x00020000 \
19 -C none -n 'M68K OpenWrt Linux-$(LINUX_VERSION)' \
20 -d $(KDIR)/vmlinux.bin $(BIN_DIR)/openwrt-$(BOARD)-uImage
24 $(call Image/Build/$(1),$(1))
27 define Image/Build/jffs2-128k
30 define Image/Build/squashfs
31 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
34 $(eval $(call BuildImage))