summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/image
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2006-04-14 10:23:54 +0000
committerImre Kaloz <kaloz@openwrt.org>2006-04-14 10:23:54 +0000
commit25bba9554f1383e9c76a1a63eec4659c32b947cf (patch)
treec6dea87c99b5cdc72da3811f3f95227c64f5fb3c /openwrt/target/linux/image
parent9b93a39c2c52142e7200f9aee8735d5a2b7793d5 (diff)
downloadmtk-20170518-25bba9554f1383e9c76a1a63eec4659c32b947cf.zip
mtk-20170518-25bba9554f1383e9c76a1a63eec4659c32b947cf.tar.gz
mtk-20170518-25bba9554f1383e9c76a1a63eec4659c32b947cf.tar.bz2
add preliminary support for the XScale port, generic endianness indication
SVN-Revision: 3648
Diffstat (limited to 'openwrt/target/linux/image')
-rw-r--r--openwrt/target/linux/image/jffs2.mk2
-rw-r--r--openwrt/target/linux/image/squashfs.mk6
-rw-r--r--openwrt/target/linux/image/xscale/Makefile36
3 files changed, 40 insertions, 4 deletions
diff --git a/openwrt/target/linux/image/jffs2.mk b/openwrt/target/linux/image/jffs2.mk
index c7d4335..281db01 100644
--- a/openwrt/target/linux/image/jffs2.mk
+++ b/openwrt/target/linux/image/jffs2.mk
@@ -1,4 +1,4 @@
-ifneq ($(BR2_mips),y)
+ifneq ($(BR2_BIG_ENDIAN),y)
JFFS2OPTS := --pad --little-endian --squash
else
JFFS2OPTS := --pad --big-endian --squash
diff --git a/openwrt/target/linux/image/squashfs.mk b/openwrt/target/linux/image/squashfs.mk
index 0b39aa1..9d344ba 100644
--- a/openwrt/target/linux/image/squashfs.mk
+++ b/openwrt/target/linux/image/squashfs.mk
@@ -1,7 +1,7 @@
+ifneq ($(BR2_BIG_ENDIAN),y)
endian := le
-
-ifeq ($(ARCH),mips)
- endian := be
+else
+endian := be
endif
squashfs-prepare:
diff --git a/openwrt/target/linux/image/xscale/Makefile b/openwrt/target/linux/image/xscale/Makefile
new file mode 100644
index 0000000..04a89f9
--- /dev/null
+++ b/openwrt/target/linux/image/xscale/Makefile
@@ -0,0 +1,36 @@
+include $(TOPDIR)/rules.mk
+
+KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
+
+
+ifeq ($(FS),jffs2-8MB)
+
+$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).img: $(KDIR)/root.$(FS)
+ $(CP) $^ $@
+
+install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).img
+
+endif
+
+
+ifeq ($(FS),tgz)
+
+$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tar.gz: $(KDIR)/root.tar.gz
+ $(CP) $^ $@
+
+install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tar.gz
+
+endif
+
+
+$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz: $(KDIR)/vmlinux
+ $(CP) $^ $@
+
+
+clean:
+prepare:
+compile:
+install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
+install-ib:
+ mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
+ $(CP) $(KDIR)/bzImage $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/