[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel,v2,3/5] lib/cpio: Create empty CPIO extraction library



From: Robert Hrusecky <roberth@xxxxxxxxxxxxx>

Information about the CPIO file format can be found here:
https://www.kernel.org/doc/Documentation/early-userspace/buffer-format.txt

Signed-off-by: Robert Hrusecky <roberth@xxxxxxxxxxxxx>
Signed-off-by: Omar Jamil <omarj2898@xxxxxxxxx>
Signed-off-by: Sachin Beldona <sachinbeldona@xxxxxxxxxx>
Signed-off-by: Gabriel Mocanu <gabi.mocanu98@xxxxxxxxx>
---
 lib/Makefile.uk            | 1 +
 lib/cpio/Makefile.uk       | 7 +++++++
 lib/cpio/cpio.c            | 0
 lib/cpio/exportsyms.uk     | 1 +
 lib/cpio/include/uk/cpio.h | 0
 5 files changed, 9 insertions(+)
 create mode 100644 lib/cpio/Makefile.uk
 create mode 100644 lib/cpio/cpio.c
 create mode 100644 lib/cpio/exportsyms.uk
 create mode 100644 lib/cpio/include/uk/cpio.h

diff --git a/lib/Makefile.uk b/lib/Makefile.uk
index 07e8a29..ff69dfa 100644
--- a/lib/Makefile.uk
+++ b/lib/Makefile.uk
@@ -21,6 +21,7 @@ $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/fdt))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/syscall_shim))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/vfscore))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/ramfs))
+$(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/cpio))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/devfs))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/9pfs))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/uklock))
diff --git a/lib/cpio/Makefile.uk b/lib/cpio/Makefile.uk
new file mode 100644
index 0000000..c3411bf
--- /dev/null
+++ b/lib/cpio/Makefile.uk
@@ -0,0 +1,7 @@
+$(eval $(call addlib_s,libcpio,$(CONFIG_LIBCPIO)))
+
+# LIBCPIO_CFLAGS-$(call gcc_version_ge,8,0) += -Wno-cast-function-type
+
+CINCLUDES-$(CONFIG_LIBCPIO) += -I$(LIBCPIO_BASE)/include
+CXXINCLUDES-$(CONFIG_LIBCPIO) += -I$(LIBCPIO_BASE)/include
+LIBCPIO_SRCS-y += $(LIBCPIO_BASE)/cpio.c
diff --git a/lib/cpio/cpio.c b/lib/cpio/cpio.c
new file mode 100644
index 0000000..e69de29
diff --git a/lib/cpio/exportsyms.uk b/lib/cpio/exportsyms.uk
new file mode 100644
index 0000000..b0047fa
--- /dev/null
+++ b/lib/cpio/exportsyms.uk
@@ -0,0 +1 @@
+None
diff --git a/lib/cpio/include/uk/cpio.h b/lib/cpio/include/uk/cpio.h
new file mode 100644
index 0000000..e69de29
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.