[Buildroot] [PATCH 1/3] Add an entry in images sub-menu for ipk repository building
Jérôme Pouiller
jezz at sysmic.org
Tue Jan 15 16:47:08 UTC 2013
Just add necessary infrastructure.
Signed-off-by: Jérôme Pouiller <jezz at sysmic.org>
---
fs/Config.in | 1 +
fs/ipk/Config.in | 13 +++++++++++++
fs/ipk/ipk.mk | 22 ++++++++++++++++++++++
3 files changed, 36 insertions(+)
create mode 100644 fs/ipk/Config.in
create mode 100644 fs/ipk/ipk.mk
diff --git a/fs/Config.in b/fs/Config.in
index da4c5ff..7689cc2 100644
--- a/fs/Config.in
+++ b/fs/Config.in
@@ -11,5 +11,6 @@ source "fs/romfs/Config.in"
source "fs/squashfs/Config.in"
source "fs/tar/Config.in"
source "fs/ubifs/Config.in"
+source "fs/ipk/Config.in"
endmenu
diff --git a/fs/ipk/Config.in b/fs/ipk/Config.in
new file mode 100644
index 0000000..b42c9ab
--- /dev/null
+++ b/fs/ipk/Config.in
@@ -0,0 +1,13 @@
+config BR2_TARGET_ROOTFS_IPK_REPO
+ bool "Ipk repository with packages"
+ default y
+ help
+ Create a repository compatible with opkg/dpkg tools.
+
+ Each selected packages is splitted in 4 parts:
+ - main package with debug symbols stripped off
+ - debug symbols
+ - development files
+ - documentation files
+ - locales
+
diff --git a/fs/ipk/ipk.mk b/fs/ipk/ipk.mk
new file mode 100644
index 0000000..8b8d6f2
--- /dev/null
+++ b/fs/ipk/ipk.mk
@@ -0,0 +1,22 @@
+#############################################################
+#
+# Generate a repository for opkg
+#
+#############################################################
+
+define ROOTFS_IPK_REPO_CMD
+ mkdir -p $(BINARIES_DIR)/ipk_repository; \
+ ( cd $(BINARIES_DIR)/ipk_repository && dpkg-scanpackages . ) > $(BINARIES_DIR)/ipk_repository/Packages; \
+ gzip < $(BINARIES_DIR)/ipk_repository/Packages > $(BINARIES_DIR)/ipk_repository/Packages.gz; \
+ echo "Archive: unstable" >> $(BINARIES_DIR)/ipk_repository/Release; \
+ echo "Origin: Buildroot" >> $(BINARIES_DIR)/ipk_repository/Release; \
+ echo "Label: Buildroot autogenerated repository" >> $(BINARIES_DIR)/ipk_repository/Release; \
+ echo "Architecture: $(ARCH)" >> $(BINARIES_DIR)/ipk_repository/Release; \
+ echo "Your repository is ready."; \
+ echo "If you use opkg, add this line to your /etc/opkg/buildroot.conf:"; \
+ echo " src/gz buildroot file://$(BINARIES_DIR)/ipk_repository"; \
+ echo "If you use apt, add this one to /etc/apt/sources.list.d/buildroot.list:"; \
+ echo " deb file://$(BINARIES_DIR)/ipk_repository .";
+endef
+
+$(eval $(call ROOTFS_TARGET,ipk_repo))
--
1.7.9.5
More information about the buildroot
mailing list