[DIRECTFB] Placeholder
[openwrt/mini2440.git] / target / linux / mini2440 / image / Makefile
blob797d7684e441ce4495f0dc99ffd03a33050759b3
1 #
2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/image.mk
11 # specifics for the samsung NAND flash
12 JFFS2_BLOCKSIZE=16k
13 JFFS2OPTS += -s 0x200 -n
15 # sudo /home/opt/build/openwrt/staging_dir/host/bin/mkfs.jffs2
16 # --pad --little-endian --squash -s 0x200 -e 0x4000 -n
17 # -o /home/opt/build/openwrt/build_dir/linux-mini2440/root.jffs2-16k
18 # -d /home/opt/build/openwrt/build_dir/target-arm_glibc-2.6.1/root-mini2440
20 define Image/Prepare
21 cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
22 endef
24 define Image/BuildKernel
25 cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
26 endef
28 define Image/Build
29 $(call Image/Build/$(1),$(1))
30 endef
32 define Image/Build/squashfs
33 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
34 ( \
35 dd if=$(KDIR)/uImage bs=1024k conv=sync; \
36 dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
37 ) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
38 endef
40 $(eval $(call BuildImage))