From d30819f7fc779e2080dfdcced68fd231d085bf4c Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Tue, 5 May 2020 22:01:24 +0930 Subject: [PATCH] Add powerpc microwatt target This selects the correct compiler flags so we generate instructions that microwatt supports. Signed-off-by: Joel Stanley --- arch/Config.in.powerpc | 2 ++ package/Makefile.in | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/Config.in.powerpc b/arch/Config.in.powerpc index ba56c9c721..03687bedd1 100644 --- a/arch/Config.in.powerpc +++ b/arch/Config.in.powerpc @@ -126,6 +126,8 @@ config BR2_powerpc_power7 config BR2_powerpc_power8 bool "power8" select BR2_POWERPC_CPU_HAS_ALTIVEC +config BR2_powerpc_microwatt + bool "microwatt" endchoice choice diff --git a/package/Makefile.in b/package/Makefile.in index 86db62ba5b..796011dd69 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -93,6 +93,9 @@ ifeq ($(BR2_powerpc_e500mc),y) TARGET_ABI += -mabi=spe -mfloat-gprs=double -Wa,-me500mc endif endif +ifeq ($(BR2_powerpc_microwatt),y) +TARGET_ABI += -mno-vsx -mno-altivec +endif # Use longcalls option for Xtensa globally. # The 'longcalls' option allows calls across a greater range of addresses, -- 2.30.2