1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-23 02:04:32 +03:00

Merge pull request #5708 from vcatechnology/arm-cross-compile

ARM32 cross-compile fixes
This commit is contained in:
Lennart Poettering 2017-04-17 15:49:06 +02:00 committed by GitHub
commit 948a3241de
7 changed files with 21 additions and 12 deletions

View File

@ -2979,10 +2979,15 @@ if ARCH_AARCH64
efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
EFI_FORMAT = -O binary
else
if ARCH_ARM
efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
EFI_FORMAT = -O binary
else
EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
endif
endif
endif
endif
# ------------------------------------------------------------------------------
systemd_boot_headers = \

View File

@ -57,6 +57,7 @@ AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is
SET_ARCH(X86_64, x86_64*)
SET_ARCH(IA32, i*86*)
SET_ARCH(MIPS, mips*)
SET_ARCH(ARM, arm*)
SET_ARCH(AARCH64, aarch64*)
# i18n stuff for the PolicyKit policy files, heck whether intltool can be found, disable NLS otherwise
@ -1313,6 +1314,9 @@ AM_COND_IF(ARCH_IA32, [
AM_COND_IF(ARCH_X86_64, [
EFI_MACHINE_TYPE_NAME=x64])
AM_COND_IF(ARCH_ARM, [
EFI_MACHINE_TYPE_NAME=arm])
AM_COND_IF(ARCH_AARCH64, [
EFI_MACHINE_TYPE_NAME=aa64])
@ -1322,7 +1326,13 @@ AC_SUBST([EFI_MACHINE_TYPE_NAME])
have_gnuefi=no
AC_ARG_ENABLE(gnuefi, AS_HELP_STRING([--enable-gnuefi], [enable optional gnuefi support]))
AS_IF([test "x$enable_gnuefi" != "xno"], [
AC_CHECK_HEADERS(efi/${EFI_ARCH}/efibind.h,
AC_ARG_WITH(efi-includedir,
AS_HELP_STRING([--with-efi-includedir=PATH], [path to EFI include directory]),
[EFI_INC_DIR="$withval"], [EFI_INC_DIR="/usr/include"]
)
AC_SUBST([EFI_INC_DIR])
AC_CHECK_HEADERS(${EFI_INC_DIR}/efi/${EFI_ARCH}/efibind.h,
[AC_DEFINE(HAVE_GNUEFI, 1, [Define if gnuefi is available])
have_gnuefi=yes],
[AS_IF([test "x$enable_gnuefi" = xyes],
@ -1351,12 +1361,6 @@ AS_IF([test "x$enable_gnuefi" != "xno"], [
[AS_IF([test "x$enable_gnuefi" = xyes],
[AC_MSG_ERROR([*** gnuefi support requested but files not found])],
[have_gnuefi=no])])
AC_ARG_WITH(efi-includedir,
AS_HELP_STRING([--with-efi-includedir=PATH], [path to EFI include directory]),
[EFI_INC_DIR="$withval"], [EFI_INC_DIR="/usr/include"]
)
AC_SUBST([EFI_INC_DIR])
])
AM_CONDITIONAL(HAVE_GNUEFI, [test "x$have_gnuefi" = xyes])

View File

@ -20,7 +20,7 @@
***/
#ifdef HAVE_BLKID
#include <blkid/blkid.h>
#include <blkid.h>
#endif
#include "util.h"

View File

@ -19,7 +19,7 @@
***/
#include <assert.h>
#include <blkid/blkid.h>
#include <blkid.h>
#include <ctype.h>
#include <dirent.h>
#include <errno.h>

View File

@ -17,7 +17,7 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <blkid/blkid.h>
#include <blkid.h>
#include <stdlib.h>
#include <sys/statfs.h>
#include <unistd.h>

View File

@ -18,7 +18,7 @@
***/
#ifdef HAVE_BLKID
#include <blkid/blkid.h>
#include <blkid.h>
#endif
#include <errno.h>
#include <getopt.h>

View File

@ -18,7 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <blkid/blkid.h>
#include <blkid.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>