summaryrefslogtreecommitdiff
path: root/target/linux/adm8668/image/Makefile
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 22:25:09 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 22:25:09 +0200
commit3362d9fb3a94d0909b79c290abc8db6abe4cca21 (patch)
tree35f9e4dfaeb691fe09fcd95b45dc440f0338a1b5 /target/linux/adm8668/image/Makefile
parent51e1f1476f74d6788b106a066dfebd8ec6ac1bd9 (diff)
downloadmtk-20170518-3362d9fb3a94d0909b79c290abc8db6abe4cca21.zip
mtk-20170518-3362d9fb3a94d0909b79c290abc8db6abe4cca21.tar.gz
mtk-20170518-3362d9fb3a94d0909b79c290abc8db6abe4cca21.tar.bz2
target/linux : drop many arch
Diffstat (limited to 'target/linux/adm8668/image/Makefile')
-rw-r--r--target/linux/adm8668/image/Makefile60
1 files changed, 0 insertions, 60 deletions
diff --git a/target/linux/adm8668/image/Makefile b/target/linux/adm8668/image/Makefile
deleted file mode 100644
index 9e25224..0000000
--- a/target/linux/adm8668/image/Makefile
+++ /dev/null
@@ -1,60 +0,0 @@
-#
-# Copyright (C) 2010 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-include $(TOPDIR)/rules.mk
-include $(INCLUDE_DIR)/image.mk
-
-VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux
-UIMAGE:=$(IMG_PREFIX)-uImage
-
-define kernel_entry
--a 0x80002000 -e 0x80002000
-endef
-
-
-define CompressGzip
- gzip -9 -c $(1) > $(2)
-endef
-
-define MkImage
- mkimage -A mips -O linux -T kernel $(call kernel_entry) -C $(1) $(2) \
- -n "ADM8668 Linux Kernel(2.4.31)" \
- -d $(3) $(4)
-endef
-
-define Build/Clean
- $(MAKE) -C lzma-loader clean
-endef
-
-define Image/Prepare
- cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
- $(MAKE) -C lzma-loader \
- KDIR="$(KDIR)" \
- clean compile
- rm -f $(KDIR)/fs_mark
- touch $(KDIR)/fs_mark
- $(call prepare_generic_squashfs,$(KDIR)/fs_mark)
-endef
-
-define Image/Build
- ./my-mkimage $(KDIR)/loader.bin $(KDIR)/root.squashfs \
- $(KDIR)/fs_mark $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin
-endef
-
-define Image/BuildKernel
- cp $(KDIR)/vmlinux.elf $(VMLINUX).elf
- cp $(KDIR)/vmlinux $(VMLINUX).bin
- $(call CompressGzip,$(KDIR)/vmlinux,$(KDIR)/vmlinux.bin.gz)
- $(call MkImage,gzip,,$(KDIR)/vmlinux.bin.gz,$(BIN_DIR)/$(UIMAGE)-gzip.bin)
-ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
- cp $(KDIR)/vmlinux-initramfs.elf $(VMLINUX)-initramfs.elf
- cp $(KDIR)/vmlinux $(VMLINUX)-initramfs.bin
- $(call CompressGzip,$(KDIR)/vmlinux-initramfs,$(KDIR)/vmlinux-initramfs.bin.gz)
- $(call MkImage,gzip,,$(KDIR)/vmlinux-initramfs.bin.gz,$(BIN_DIR)/$(UIMAGE)-initramfs-gzip.bin)
-endif
-endef
-
-$(eval $(call BuildImage))