[Arm-dev] supported 64bit hardware

Lomovtsev, Vadim Vadim.Lomovtsev at caviumnetworks.com
Thu Dec 15 17:50:00 UTC 2016


Hi Uli,

The patch sets UTS_MACHINE for arm64 is in the mainline already (4.9 has it for sure).
You may need to backport it onto your source tree.
:)

However, second one (which adds image_name rule into Makefile) needs more work to be done for other architectures and mkspec/builddep scripts also.
I plan get back to it after NY holydays.

WBR,
Vadim
________________________________________
From: Arm-dev <arm-dev-bounces at centos.org> on behalf of Uli Middelberg <uli at middelberg.de>
Sent: Thursday, December 15, 2016 6:26:23 PM
To: Conversations around CentOS on ARM hardware
Subject: Re: [Arm-dev] supported 64bit hardware

Hi Vadim,

Am 14.12.2016 um 10:05 schrieb Lomovtsev, Vadim:
> And eventually I was able to get rpms.
Tank you very much! I was able to get rpms as well (even with CONFIG_LOCALVERSION_AUTO enabled)

You can find them for download here:
https://www.dropbox.com/sh/o8q8ttl97s1sqbp/AAAAx_SqbBR2hz3P5N4EOX98a?dl=0

This is the patch I've applied, I'll try to get it merged into the upstream repo.

Cheers
Uli


diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 18ea69f..36bdd68 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -25,10 +25,12 @@ ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)
 KBUILD_CPPFLAGS        += -mbig-endian
 AS             += -EB
 LD             += -EB
+UTS_MACHINE    := aarch64_be
 else
 KBUILD_CPPFLAGS        += -mlittle-endian
 AS             += -EL
 LD             += -EL
+UTS_MACHINE    := aarch64
 endif

 comma = ,
@@ -67,6 +69,8 @@ all:  $(KBUILD_IMAGE) $(KBUILD_DTBS)

 boot := arch/arm64/boot

+image_name: KBUILD_IMAGE :=$(boot)/$(KBUILD_IMAGE)
+
 Image Image.gz: vmlinux
        $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@

diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile
index f535a85..2564dfd 100644
--- a/arch/arm64/kernel/Makefile
+++ b/arch/arm64/kernel/Makefile
@@ -11,6 +11,8 @@ CFLAGS_REMOVE_ftrace.o = -pg
 CFLAGS_REMOVE_insn.o = -pg
 CFLAGS_REMOVE_return_address.o = -pg

+CFLAGS_setup.o = -DUTS_MACHINE='"$(UTS_MACHINE)"'
+
 # Object file lists.
 arm64-obj-y            := cputable.o debug-monitors.o entry.o irq.o fpsimd.o   \
                           entry-fpsimd.o process.o ptrace.o setup.o signal.o   \




More information about the Arm-dev mailing list