summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2013-07-15 00:03:47 +0000
committerbnewbold <bnewbold@robocracy.org>2013-07-15 00:03:47 +0000
commit6c94ef706e8b4450a8a83b0f1cf80a74d683d4a0 (patch)
tree051fb87d5de9421e798baf709d578e246674d347
parent6b2a0e0c9b297396a9c0841905fa31275a38a0e3 (diff)
downloadbuildroot-novena-6c94ef706e8b4450a8a83b0f1cf80a74d683d4a0.tar.gz
buildroot-novena-6c94ef706e8b4450a8a83b0f1cf80a74d683d4a0.zip
packages: add genfatfs and makedisk (both host tools)
-rw-r--r--package/Config.in.host2
-rw-r--r--package/genfatfs/Config.in.host6
-rw-r--r--package/genfatfs/genfatfs.mk29
-rw-r--r--package/makedisk/Config.in.host7
-rw-r--r--package/makedisk/makedisk.mk29
5 files changed, 73 insertions, 0 deletions
diff --git a/package/Config.in.host b/package/Config.in.host
index 5fd25703c..6ba02f42a 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -13,5 +13,7 @@ source "package/openocd/Config.in.host"
source "package/sam-ba/Config.in.host"
source "package/sunxi-tools/Config.in.host"
source "package/uboot-tools/Config.in.host"
+source "package/makedisk/Config.in.host"
+source "package/genfatfs/Config.in.host"
endmenu
diff --git a/package/genfatfs/Config.in.host b/package/genfatfs/Config.in.host
new file mode 100644
index 000000000..ed8232c84
--- /dev/null
+++ b/package/genfatfs/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_GENFATFS
+ bool "host genfatfs"
+ help
+ FAT filesystem disk image generator.
+
+ https://github.com/xobs/genfatfs
diff --git a/package/genfatfs/genfatfs.mk b/package/genfatfs/genfatfs.mk
new file mode 100644
index 000000000..1128f0241
--- /dev/null
+++ b/package/genfatfs/genfatfs.mk
@@ -0,0 +1,29 @@
+################################################################################
+#
+# genfatfs
+#
+################################################################################
+
+GENFATFS_VERSION = 5c9ef0078b379966d5532389b4f332cfabb9ccd0
+GENFATFS_SITE = https://github.com/xobs/genfatfs/tarball/$(GENFATFS_VERSION)
+
+define GENFATFS_BUILD_CMDS
+ $(MAKE) -C $(@D) \
+ HOSTCC="$(TARGET_CC)" \
+ HOSTCFLAGS="$(TARGET_CFLAGS)" \
+ HOSTLDFLAGS="$(TARGET_LDFLAGS)" \
+ HOSTSTRIP=true
+endef
+
+define HOST_GENFATFS_BUILD_CMDS
+ $(MAKE1) -C $(@D) \
+ HOSTCC="$(HOSTCC)" \
+ HOSTCFLAGS="$(HOST_CFLAGS)" \
+ HOSTLDFLAGS="$(HOST_LDFLAGS)"
+endef
+
+define HOST_GENFATFS_INSTALL_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/genfatfs $(HOST_DIR)/usr/bin/genfatfs
+endef
+
+$(eval $(host-generic-package))
diff --git a/package/makedisk/Config.in.host b/package/makedisk/Config.in.host
new file mode 100644
index 000000000..cb1df3760
--- /dev/null
+++ b/package/makedisk/Config.in.host
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_MAKEDISK
+ bool "host makedisk"
+ help
+ SD Card image generator (multi-partition)
+
+ https://github.com/sutajiokousagi/makedisk
+
diff --git a/package/makedisk/makedisk.mk b/package/makedisk/makedisk.mk
new file mode 100644
index 000000000..4797f07f4
--- /dev/null
+++ b/package/makedisk/makedisk.mk
@@ -0,0 +1,29 @@
+################################################################################
+#
+# maketools
+#
+################################################################################
+
+MAKEDISK_VERSION = c343d8e8176482cf2302ea5d8e1974e9178eab83
+MAKEDISK_SITE = https://github.com/sutajiokousagi/makedisk/tarball/$(MAKEDISK_VERSION)
+
+define MAKEDISK_BUILD_CMDS
+ $(MAKE) -C $(@D) \
+ HOSTCC="$(TARGET_CC)" \
+ HOSTCFLAGS="$(TARGET_CFLAGS)" \
+ HOSTLDFLAGS="$(TARGET_LDFLAGS)" \
+ HOSTSTRIP=true
+endef
+
+define HOST_MAKEDISK_BUILD_CMDS
+ $(MAKE1) -C $(@D) \
+ HOSTCC="$(HOSTCC)" \
+ HOSTCFLAGS="$(HOST_CFLAGS)" \
+ HOSTLDFLAGS="$(HOST_LDFLAGS)"
+endef
+
+define HOST_MAKEDISK_INSTALL_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/makedisk $(HOST_DIR)/usr/bin/makedisk
+endef
+
+$(eval $(host-generic-package))