Patchwork [meta-oe,1/2] libhugetlbfs: not build obj32 for all 64b platforms

login
register
mail settings
Submitter Ting Liu
Date July 25, 2014, 10:08 a.m.
Message ID <1406282895-19011-1-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/76663/
State Accepted, archived
Headers show

Comments

Ting Liu - July 25, 2014, 10:08 a.m.
From: Ting Liu <b28495@freescale.com>

qemux86_64 has the same issue with powerpc64, set
BUILDTYPE=NATIVEONLY as default

Fix the below build issue for 64bit platforms:
| fatal error: gnu/stubs-32.h: No such file or directory
|  # include <gnu/stubs-32.h>
|                            ^
| compilation terminated.
| make: *** [obj32/elflink.o] Error 1

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 .../libhugetlbfs/libhugetlbfs_git.bb               |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Patch

diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
index 55d555b..315863d 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
@@ -28,8 +28,7 @@  LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
 LIBHUGETLBFS_ARCH = "${TARGET_ARCH}"
 LIBHUGETLBFS_ARCH_powerpc = "ppc"
 LIBHUGETLBFS_ARCH_powerpc64 = "ppc64"
-EXTRA_OEMAKE = "'ARCH=${LIBHUGETLBFS_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} V=2"
-EXTRA_OEMAKE_append_powerpc64 = " BUILDTYPE=NATIVEONLY"
+EXTRA_OEMAKE = "'ARCH=${LIBHUGETLBFS_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} BUILDTYPE=NATIVEONLY V=2"
 PARALLEL_MAKE = ""
 CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"