From 57e8966b5d03933335a40ecb1a8fd27691012097 Mon Sep 17 00:00:00 2001 From: Callum Farmer Date: Sat, 28 Sep 2024 18:07:44 +0100 Subject: [PATCH] Add packaging guide Files have been ending up in differing places between distros - this is an attempt to fix this Signed-off-by: Callum Farmer --- docs/README.packaging.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docs/README.packaging.md diff --git a/docs/README.packaging.md b/docs/README.packaging.md new file mode 100644 index 0000000..37b9f38 --- /dev/null +++ b/docs/README.packaging.md @@ -0,0 +1,19 @@ +# Packaging gnu-efi + +## Set variables per distro configuration + +make should be called with the following variables: + +- PREFIX (defaults to `/usr/local`)(`%{_prefix}` on RPM distros) +- EXEC_PREFIX (*optional*) (defaults to `$PREFIX`) (`%{_exec_prefix}` on RPM distros) +- LIBDIR (defaults to `$EXEC_PREFIX/lib`) (`%{_libdir}` on RPM distros) +- INCLUDEDIR (*optional*) (defaults to `$PREFIX/include`) (`%{_includedir}` on RPM distros) +- LINUX_HEADERS (*optional*) (**build only**) - location of Linux kernel header files (defaults to `/usr/src/sys/build`) +- DESTDIR (**install only**) - installation output directory (`%{buildroot}` on RPM distros - included in `%make_install`) + +Currently, these variables unless stated will need to be set for both build and installation stages. + +Those without optional markers I heavily suggest you to set them otherwise files may be located in the wrong directory +for the architecture which you are building for + +*The related RPM variables are included here for cross referencing purposes* \ No newline at end of file