summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-10-05 11:06:56 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-10-05 11:06:56 +0000
commit0c16c17f539ccbc91d4dd1ea5168e7beb390fa5d (patch)
treeedef4087d4c0e90fee1f14bb1014c9348cd2af13 /target
parentfdcde6faedc015ffd8568de023eb3b5cfd00f901 (diff)
downloadbuildroot-novena-0c16c17f539ccbc91d4dd1ea5168e7beb390fa5d.tar.gz
buildroot-novena-0c16c17f539ccbc91d4dd1ea5168e7beb390fa5d.zip
- start to think about GNU/hurd support.
Not yet functional. Help welcome
Diffstat (limited to 'target')
-rw-r--r--target/Makefile.in2
-rw-r--r--target/hurd/Config.in2
-rw-r--r--target/hurd/Makefile.in38
3 files changed, 40 insertions, 2 deletions
diff --git a/target/Makefile.in b/target/Makefile.in
index 410ae7bd2..bb7d596cc 100644
--- a/target/Makefile.in
+++ b/target/Makefile.in
@@ -24,4 +24,4 @@ include target/*/*.mk
#else
include target/linux/Makefile.in
#endif
-
+include target/hurd/Makefile.in
diff --git a/target/hurd/Config.in b/target/hurd/Config.in
index be5675f5b..08b9ff7e7 100644
--- a/target/hurd/Config.in
+++ b/target/hurd/Config.in
@@ -1,5 +1,5 @@
config BR2_PACKAGE_HURD
- bool "Hurd kernel"
+ bool "Hurd kernel (see helptext)"
depends on BR2_KERNEL_HURD
default y
help
diff --git a/target/hurd/Makefile.in b/target/hurd/Makefile.in
new file mode 100644
index 000000000..9bd7d9b1c
--- /dev/null
+++ b/target/hurd/Makefile.in
@@ -0,0 +1,38 @@
+# GNU Hurd kernel
+#
+ifeq ($(BR2_KERNEL_HURD),y)
+
+HURD_MODULE_SITE:= -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/hurd
+MIG_MODULE_NAME:=mig
+MIG_MODULE_VERSION:=cvs
+HURD_MODULE_NAME:=hurd
+HURD_MODULE_VERSION:=cvs
+HURD_CMD_CO=cvs -z3 $(HURD_MODULE_SITE) co
+HURD_CMD_UP:=cvs up -PA -d
+HURD_SRC_DIR:=hurd-$(HURD_MODULE_VERSION)
+MIG_SRC_DIR:=mig-$(MIG_MODULE_VERSION)
+
+$(TOOL_BUILD_DIR)/$(HURD_SRC_DIR)/.unpacked:
+ mkdir -p $(@D)
+ (cd $(TOOL_BUILD_DIR) && \
+ $(HURD_CMD_CO) -d $(HURD_SRC_DIR) $(HURD_MODULE_NAME); \
+ )
+ touch $@
+
+$(TOOL_BUILD_DIR)/$(MIG_SRC_DIR)/.unpacked:
+ mkdir -p $(@D)
+ (cd $(TOOL_BUILD_DIR) && \
+ $(HURD_CMD_CO) -d $(MIG_SRC_DIR) $(MIG_MODULE_NAME); \
+ )
+ touch $@
+
+$(TOOL_BUILD_DIR)/$(HURD_SRC_DIR)/.updated: $(TOOL_BUILD_DIR)/$(HURD_SRC_DIR)/.unpacked
+ (cd $(@D) && $(HURD_CMD_UP))
+
+$(TOOL_BUILD_DIR)/$(MIG_SRC_DIR)/.updated: $(TOOL_BUILD_DIR)/$(MIG_SRC_DIR)/.unpacked
+ (cd $(@D) && $(HURD_CMD_UP))
+
+hurd-source: $(TOOL_BUILD_DIR)/$(HURD_SRC_DIR)/.updated \
+ $(TOOL_BUILD_DIR)/$(MIG_SRC_DIR)/.updated
+
+endif