b8665e39f1
Set CROSS variable otherwise makedumpfile will use it to undefine the
host architecture through -U__$(HOST_ARCH)__ if $(TARGET) is not equal
to $(HOST_ARCH). This will result in the following build failure since
the addition of the package in commit
adb64a97e7
if aarch64_be is cross-compiled
on a aarch64 host for example:
/home/autobuild/autobuild/instance-5/output-1/host/bin/aarch64_be-buildroot-linux-uclibc-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -g0 -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVERSION='"1.7.0"' -DRELEASE_DATE='"8 Nov 2021"' -D__aarch64_be__ -U__aarch64__ -DUSELZO -c -o ./print_info.o print_info.c
[...]
makedumpfile.c: In function 'is_kvaddr':
makedumpfile.c:1547:46: error: 'KVBASE' undeclared (first use in this function)
1547 | return (addr >= (unsigned long long)(KVBASE));
| ^~~~~~
Fixes:
- http://autobuild.buildroot.org/results/e4e10364e1a24099ce31bf20eacf5adedf93e5a7
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# makedumpfile
|
|
#
|
|
################################################################################
|
|
|
|
MAKEDUMPFILE_VERSION = 1.7.0
|
|
MAKEDUMPFILE_SITE = $(call github,makedumpfile,makedumpfile,$(MAKEDUMPFILE_VERSION))
|
|
MAKEDUMPFILE_DEPENDENCIES = bzip2 elfutils xz zlib
|
|
MAKEDUMPFILE_LICENSE = GPL-2.0
|
|
MAKEDUMPFILE_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_powerpc),y)
|
|
MAKEDUMPFILE_TARGET = powerpc32
|
|
else
|
|
MAKEDUMPFILE_TARGET = $(BR2_ARCH)
|
|
endif
|
|
|
|
MAKEDUMPFILE_MAKE_OPTS = \
|
|
CROSS= \
|
|
TARGET=$(MAKEDUMPFILE_TARGET) \
|
|
LINKTYPE=dynamic
|
|
|
|
ifeq ($(BR2_PACKAGE_LZO),y)
|
|
MAKEDUMPFILE_DEPENDENCIES += lzo
|
|
MAKEDUMPFILE_MAKE_OPTS += USELZO=on
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SNAPPY),y)
|
|
MAKEDUMPFILE_DEPENDENCIES += snappy
|
|
MAKEDUMPFILE_MAKE_OPTS += USESNAPPY=on
|
|
endif
|
|
|
|
define MAKEDUMPFILE_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
$(MAKEDUMPFILE_MAKE_OPTS)
|
|
endef
|
|
|
|
define MAKEDUMPFILE_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
|
|
DESTDIR="$(TARGET_DIR)"
|
|
endef
|
|
|
|
$(eval $(generic-package))
|