summaryrefslogtreecommitdiff
path: root/openwrt/target
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-02-19 07:46:01 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-02-19 07:46:01 +0000
commit95b6887e9aa27b9788f135635f1d40d9b309f456 (patch)
treefc4b24d257d49bf1fa37f482d183fe7e79ff4457 /openwrt/target
parent9d96d4bf9f2339a31bc036dea80866920c9a7c94 (diff)
downloadmtk-20170518-95b6887e9aa27b9788f135635f1d40d9b309f456.zip
mtk-20170518-95b6887e9aa27b9788f135635f1d40d9b309f456.tar.gz
mtk-20170518-95b6887e9aa27b9788f135635f1d40d9b309f456.tar.bz2
sync with buildroot2 from uclibc, add devices, may be used to build other kernel modules for different devices, can be used for other stuff
SVN-Revision: 267
Diffstat (limited to 'openwrt/target')
-rw-r--r--openwrt/target/Config.in3
-rw-r--r--openwrt/target/Makefile.in18
-rw-r--r--openwrt/target/default/openwrt.mk10
-rw-r--r--openwrt/target/default/skel.tar.gzbin0 -> 193 bytes
-rw-r--r--openwrt/target/device/Config.in17
-rw-r--r--openwrt/target/device/Makefile.in2
-rw-r--r--openwrt/target/jffs2/jffs2root.mk5
-rw-r--r--openwrt/target/squashfs-lzma/squashfslzmaroot.mk5
-rw-r--r--openwrt/target/squashfs/squashfsroot.mk5
9 files changed, 53 insertions, 12 deletions
diff --git a/openwrt/target/Config.in b/openwrt/target/Config.in
index 1fad548..d93df6b 100644
--- a/openwrt/target/Config.in
+++ b/openwrt/target/Config.in
@@ -4,4 +4,5 @@ choice
source "target/squashfs/Config.in"
source "target/squashfs-lzma/Config.in"
endchoice
- comment "After changing root filesystem, do make clean"
+
+source "target/device/Config.in"
diff --git a/openwrt/target/Makefile.in b/openwrt/target/Makefile.in
index c01ade2..802b576 100644
--- a/openwrt/target/Makefile.in
+++ b/openwrt/target/Makefile.in
@@ -1 +1,17 @@
-# Nothing
+# Default target skeleton stuff, may be overridden
+TARGET_SKELETON=target/default/skel.tar.gz
+TARGET_SKEL_DIR=target/default/target_skeleton
+
+include target/device/Makefile.in
+
+openwrt-linux.trx: openwrt-trx
+ PATH=$(TARGET_PATH) trx -o openwrt-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(IMAGE).$(ROOTFS)
+
+openwrt-gs-code.bin: openwrt-addpattern openwrt-linux.trx
+ PATH=$(TARGET_PATH) addpattern -2 -i openwrt-linux.trx -o openwrt-gs-code.bin -g
+
+openwrt-g-code.bin: openwrt-gs-code.bin
+ sed -e "1s,^W54S,W54G," < openwrt-gs-code.bin > openwrt-g-code.bin
+
+openwrt-image: openwrt-g-code.bin
+
diff --git a/openwrt/target/default/openwrt.mk b/openwrt/target/default/openwrt.mk
deleted file mode 100644
index 89051cd..0000000
--- a/openwrt/target/default/openwrt.mk
+++ /dev/null
@@ -1,10 +0,0 @@
-openwrt-linux.trx: openwrt-trx
- PATH=$(TARGET_PATH) trx -o openwrt-linux.trx $(LINUX_DIR)/$(LINUX_BINLOC) $(IMAGE).$(ROOTFS)
-
-openwrt-gs-code.bin: openwrt-addpattern openwrt-linux.trx
- PATH=$(TARGET_PATH) addpattern -2 -i openwrt-linux.trx -o openwrt-gs-code.bin -g
-
-openwrt-g-code.bin: openwrt-gs-code.bin
- sed -e "1s,^W54S,W54G," < openwrt-gs-code.bin > openwrt-g-code.bin
-
-openwrt-image: openwrt-g-code.bin
diff --git a/openwrt/target/default/skel.tar.gz b/openwrt/target/default/skel.tar.gz
new file mode 100644
index 0000000..86cefb1
--- /dev/null
+++ b/openwrt/target/default/skel.tar.gz
Binary files differ
diff --git a/openwrt/target/device/Config.in b/openwrt/target/device/Config.in
new file mode 100644
index 0000000..36d056c
--- /dev/null
+++ b/openwrt/target/device/Config.in
@@ -0,0 +1,17 @@
+choice
+ prompt "Device Support"
+ default BR2_TARGET_ALL
+
+config BR2_TARGET_ALL
+ bool "Support for all devices"
+
+config BR2_TARGET_LINKSYS_WRT54G
+ bool "Linksys WRT54G Support"
+
+config BR2_TARGET_LINKSYS_WRT54GS
+ bool "Linksys WRT54GS Support"
+
+config BR2_TARGET_ASUS_WL500G
+ bool "Asus WL-500g Support"
+
+endchoice
diff --git a/openwrt/target/device/Makefile.in b/openwrt/target/device/Makefile.in
new file mode 100644
index 0000000..92d6e76
--- /dev/null
+++ b/openwrt/target/device/Makefile.in
@@ -0,0 +1,2 @@
+-include target/device/*/*/Makefile.in
+-include target/device/all/Makefile.in
diff --git a/openwrt/target/jffs2/jffs2root.mk b/openwrt/target/jffs2/jffs2root.mk
index 90a6016..8dcd00f 100644
--- a/openwrt/target/jffs2/jffs2root.mk
+++ b/openwrt/target/jffs2/jffs2root.mk
@@ -43,3 +43,8 @@ jffs2root-clean:
jffs2root-dirclean:
rm -rf $(MTD_DIR)
+
+ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2)),y)
+TARGETS+=jffs2root openwrt-image
+ROOTFS=jffs2
+endif
diff --git a/openwrt/target/squashfs-lzma/squashfslzmaroot.mk b/openwrt/target/squashfs-lzma/squashfslzmaroot.mk
index 6f41f93..722c205 100644
--- a/openwrt/target/squashfs-lzma/squashfslzmaroot.mk
+++ b/openwrt/target/squashfs-lzma/squashfslzmaroot.mk
@@ -48,3 +48,8 @@ squashfslzmaroot-clean:
squashfslzmaroot-dirclean:
rm -rf $(SQUASHFSLZMA_DIR)
+
+ifeq ($(strip $(BR2_TARGET_ROOTFS_SQUASHFS_LZMA)),y)
+TARGETS+=squashfslzmaroot openwrt-image
+ROOTFS=squashfslzma
+endif
diff --git a/openwrt/target/squashfs/squashfsroot.mk b/openwrt/target/squashfs/squashfsroot.mk
index 4dd6800..d3a104a 100644
--- a/openwrt/target/squashfs/squashfsroot.mk
+++ b/openwrt/target/squashfs/squashfsroot.mk
@@ -47,3 +47,8 @@ squashfsroot-clean:
squashfsroot-dirclean:
rm -rf $(SQUASHFS_DIR)
+
+ifeq ($(strip $(BR2_TARGET_ROOTFS_SQUASHFS)),y)
+TARGETS+=squashfsroot openwrt-image
+ROOTFS=squashfs
+endif