From nobody Sun Nov 24 11:13:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1725380019; cv=none; d=zohomail.com; s=zohoarc; b=DfEHk6WqLpBWI8fJ0czmx81nnwTiC6REZpf4z2DcbSgYY5/Ioo9nh/M9R3YZxzJhtmYs3kiCgXhTPDby92xy0s/Fd02U04TB5iukdrl8qVv3ur6Insg5m9QunDXhH6NRqqPaVMObZmj+nyGxjhROBFQMVvhzTbCI9lGzqBfbYvg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725380019; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=4XZ7NOx/WtVIQqrk01ux4dOB629Yo/Ds1l4cW4PljMY=; b=kV3NI9NX1vqOym2dm967+nEaDJTbYXUqd9uMW/pywf/tBtgwtcdYeplUbCO0bRPiR45yuKKslqnuajyhCeMQzdH5crkQfVrE35pXTON2x3LP6/90WVv2O+1W5SAuxEeOp7dfY08QzNUzKVFghnhvre10aSrRKcod9GBjg8BFWsA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 172538001987147.16661692637865; Tue, 3 Sep 2024 09:13:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slW4r-00062P-RQ; Tue, 03 Sep 2024 12:08:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slW4p-0005ru-Rg for qemu-devel@nongnu.org; Tue, 03 Sep 2024 12:08:19 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slW4l-0002k3-6o for qemu-devel@nongnu.org; Tue, 03 Sep 2024 12:08:19 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-533496017f8so7423055e87.0 for ; Tue, 03 Sep 2024 09:08:14 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6df1066sm175123065e9.18.2024.09.03.09.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 09:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725379692; x=1725984492; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=4XZ7NOx/WtVIQqrk01ux4dOB629Yo/Ds1l4cW4PljMY=; b=DW+3XEP1Pi9Us1XjOb7IFupTSqr5qPoVI5Uz9nguQWNLwlFR5k9gvgEgGFuTYPJIYD Cj8tbPCAYoPV13GArvW3Vj0vUyYdunWwqNEH7XHG69UqYesW5HLn9B0D96L8tBENQqx1 u9H4vpH3k7uv+QTSbre2nf0FdLcf1Ryfcz9oTE4lQzSnB8Dv7Hwrjwm1MzGucnYOcsdO YmAXbs/n1AB10tcQXBnw5z9cM8feCZs/3s174Syhudy9mOUtsd7jw8pawZ5JQoWKcWXZ U95Jh9NNbdvChFYux9F8OPa5FEc638stnXQmrqWjrVCdWUb6fPPANGiRsqmHAGTv5+0O wtgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725379692; x=1725984492; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4XZ7NOx/WtVIQqrk01ux4dOB629Yo/Ds1l4cW4PljMY=; b=k75g6kuDeebdTeZWUiUPzXQrKP7p5ELbkc4eZewuYAxWVSiQYWnSmBOd76agKm6njC Zzj5/1bJvw8bFRNY3SsPY8E986Pb2xZK67KZhZ9gq4tMrJN+mYuYw/B+MjfLk51c+E0B CHT9HsMuZQrlt54/6XN2mdhib9YiocE47eXbO1oDT38LcWuQOzo7Z4SHXLVfrYQ4KDzn YKWfPYWWluebL4XqbO48AMqx69jbGUAsFEjOKJciiIvQMnGAeJsfsO+bg6Qai0wodNl7 fXGc98Q/hDuGWVaKrnkh0Ggdol9rEaaRNIbYYx9TZczxML2oXqrozKLeZKDy+Fr1En3K kUug== X-Forwarded-Encrypted: i=1; AJvYcCX5sciJTVbbuF/uiuTZxLDApRieStxfQ8agKpx/8D10kVzLkA077SJjvukosoA7fZnexVLSnGsiwm9z@nongnu.org X-Gm-Message-State: AOJu0YzROOM6Z7sN46WtzpN1oTkGYVPL66Jzp8bMls3rmbLqa7I5lOEM EgWsV2ge5bcd8MhvWYVWZW27ORVKDwEM0uVOFYyq/JuxS/dqwBQkrbVmJFKZ3Ev0ETf9TTfX8YQ F X-Google-Smtp-Source: AGHT+IGVX+H8QJXOxhgG88Ijc58u0AYSQw/GKKKtW6pZQCo6D+8TtgUtzmVI+UGLYI96PnN+QMFm6A== X-Received: by 2002:a05:6512:138d:b0:533:4bd0:df69 with SMTP id 2adb3069b0e04-53546b9cdcbmr9082639e87.55.1725379692364; Tue, 03 Sep 2024 09:08:12 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH for-9.2 12/53] hw/arm: Remove 'z2' machine Date: Tue, 3 Sep 2024 17:07:10 +0100 Message-Id: <20240903160751.4100218-13-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240903160751.4100218-1-peter.maydell@linaro.org> References: <20240903160751.4100218-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=peter.maydell@linaro.org; helo=mail-lf1-x12f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1725380020267116600 Content-Type: text/plain; charset="utf-8" The 'z2' machine was deprecated in 9.0, so we can remove it for 9.2. Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 - configs/devices/arm-softmmu/default.mak | 1 - hw/arm/z2.c | 355 ------------------------ hw/arm/Kconfig | 9 - hw/arm/meson.build | 1 - 5 files changed, 367 deletions(-) delete mode 100644 hw/arm/z2.c diff --git a/MAINTAINERS b/MAINTAINERS index fd4e8b0d705..8ca445ad5a0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -907,7 +907,6 @@ PXA2XX M: Peter Maydell L: qemu-arm@nongnu.org S: Odd Fixes -F: hw/arm/z2.c F: hw/*/pxa2xx* F: include/hw/arm/pxa.h =20 diff --git a/configs/devices/arm-softmmu/default.mak b/configs/devices/arm-= softmmu/default.mak index 547100a06f3..260b0cf9772 100644 --- a/configs/devices/arm-softmmu/default.mak +++ b/configs/devices/arm-softmmu/default.mak @@ -27,7 +27,6 @@ # CONFIG_VERSATILE=3Dn # CONFIG_VEXPRESS=3Dn # CONFIG_ZYNQ=3Dn -# CONFIG_Z2=3Dn # CONFIG_NPCM7XX=3Dn # CONFIG_COLLIE=3Dn # CONFIG_ASPEED_SOC=3Dn diff --git a/hw/arm/z2.c b/hw/arm/z2.c deleted file mode 100644 index fc5672e7ab2..00000000000 --- a/hw/arm/z2.c +++ /dev/null @@ -1,355 +0,0 @@ -/* - * PXA270-based Zipit Z2 device - * - * Copyright (c) 2011 by Vasily Khoruzhick - * - * Code is based on mainstone platform. - * - * This code is licensed under the GNU GPL v2. - * - * Contributions after 2012-01-13 are licensed under the terms of the - * GNU GPL, version 2 or (at your option) any later version. - */ - -#include "qemu/osdep.h" -#include "qemu/units.h" -#include "hw/arm/pxa.h" -#include "hw/arm/boot.h" -#include "hw/i2c/i2c.h" -#include "hw/irq.h" -#include "hw/ssi/ssi.h" -#include "migration/vmstate.h" -#include "hw/boards.h" -#include "hw/block/flash.h" -#include "ui/console.h" -#include "hw/audio/wm8750.h" -#include "audio/audio.h" -#include "exec/address-spaces.h" -#include "qom/object.h" -#include "qapi/error.h" -#include "trace.h" - -static const struct keymap map[0x100] =3D { - [0 ... 0xff] =3D { -1, -1 }, - [0x3b] =3D {0, 0}, /* Option =3D F1 */ - [0xc8] =3D {0, 1}, /* Up */ - [0xd0] =3D {0, 2}, /* Down */ - [0xcb] =3D {0, 3}, /* Left */ - [0xcd] =3D {0, 4}, /* Right */ - [0xcf] =3D {0, 5}, /* End */ - [0x0d] =3D {0, 6}, /* KPPLUS */ - [0xc7] =3D {1, 0}, /* Home */ - [0x10] =3D {1, 1}, /* Q */ - [0x17] =3D {1, 2}, /* I */ - [0x22] =3D {1, 3}, /* G */ - [0x2d] =3D {1, 4}, /* X */ - [0x1c] =3D {1, 5}, /* Enter */ - [0x0c] =3D {1, 6}, /* KPMINUS */ - [0xc9] =3D {2, 0}, /* PageUp */ - [0x11] =3D {2, 1}, /* W */ - [0x18] =3D {2, 2}, /* O */ - [0x23] =3D {2, 3}, /* H */ - [0x2e] =3D {2, 4}, /* C */ - [0x38] =3D {2, 5}, /* LeftAlt */ - [0xd1] =3D {3, 0}, /* PageDown */ - [0x12] =3D {3, 1}, /* E */ - [0x19] =3D {3, 2}, /* P */ - [0x24] =3D {3, 3}, /* J */ - [0x2f] =3D {3, 4}, /* V */ - [0x2a] =3D {3, 5}, /* LeftShift */ - [0x01] =3D {4, 0}, /* Esc */ - [0x13] =3D {4, 1}, /* R */ - [0x1e] =3D {4, 2}, /* A */ - [0x25] =3D {4, 3}, /* K */ - [0x30] =3D {4, 4}, /* B */ - [0x1d] =3D {4, 5}, /* LeftCtrl */ - [0x0f] =3D {5, 0}, /* Tab */ - [0x14] =3D {5, 1}, /* T */ - [0x1f] =3D {5, 2}, /* S */ - [0x26] =3D {5, 3}, /* L */ - [0x31] =3D {5, 4}, /* N */ - [0x39] =3D {5, 5}, /* Space */ - [0x3c] =3D {6, 0}, /* Stop =3D F2 */ - [0x15] =3D {6, 1}, /* Y */ - [0x20] =3D {6, 2}, /* D */ - [0x0e] =3D {6, 3}, /* Backspace */ - [0x32] =3D {6, 4}, /* M */ - [0x33] =3D {6, 5}, /* Comma */ - [0x3d] =3D {7, 0}, /* Play =3D F3 */ - [0x16] =3D {7, 1}, /* U */ - [0x21] =3D {7, 2}, /* F */ - [0x2c] =3D {7, 3}, /* Z */ - [0x27] =3D {7, 4}, /* Semicolon */ - [0x34] =3D {7, 5}, /* Dot */ -}; - -#define Z2_RAM_SIZE 0x02000000 -#define Z2_FLASH_BASE 0x00000000 -#define Z2_FLASH_SIZE 0x00800000 - -static struct arm_boot_info z2_binfo =3D { - .loader_start =3D PXA2XX_SDRAM_BASE, - .ram_size =3D Z2_RAM_SIZE, -}; - -#define Z2_GPIO_SD_DETECT 96 -#define Z2_GPIO_AC_IN 0 -#define Z2_GPIO_KEY_ON 1 -#define Z2_GPIO_LCD_CS 88 - -struct ZipitLCD { - SSIPeripheral ssidev; - int32_t selected; - int32_t enabled; - uint8_t buf[3]; - uint32_t cur_reg; - int pos; -}; - -#define TYPE_ZIPIT_LCD "zipit-lcd" -OBJECT_DECLARE_SIMPLE_TYPE(ZipitLCD, ZIPIT_LCD) - -static uint32_t zipit_lcd_transfer(SSIPeripheral *dev, uint32_t value) -{ - ZipitLCD *z =3D ZIPIT_LCD(dev); - uint16_t val; - - trace_z2_lcd_reg_update(z->cur_reg, z->buf[0], z->buf[1], z->buf[2], v= alue); - if (z->selected) { - z->buf[z->pos] =3D value & 0xff; - z->pos++; - } - if (z->pos =3D=3D 3) { - switch (z->buf[0]) { - case 0x74: - z->cur_reg =3D z->buf[2]; - break; - case 0x76: - val =3D z->buf[1] << 8 | z->buf[2]; - if (z->cur_reg =3D=3D 0x22 && val =3D=3D 0x0000) { - z->enabled =3D 1; - trace_z2_lcd_enable_disable_result("enabled"); - } else if (z->cur_reg =3D=3D 0x10 && val =3D=3D 0x0000) { - z->enabled =3D 0; - trace_z2_lcd_enable_disable_result("disabled"); - } - break; - default: - break; - } - z->pos =3D 0; - } - return 0; -} - -static void z2_lcd_cs(void *opaque, int line, int level) -{ - ZipitLCD *z2_lcd =3D opaque; - z2_lcd->selected =3D !level; -} - -static void zipit_lcd_realize(SSIPeripheral *dev, Error **errp) -{ - ZipitLCD *z =3D ZIPIT_LCD(dev); - z->selected =3D 0; - z->enabled =3D 0; - z->pos =3D 0; -} - -static const VMStateDescription vmstate_zipit_lcd_state =3D { - .name =3D "zipit-lcd", - .version_id =3D 2, - .minimum_version_id =3D 2, - .fields =3D (const VMStateField[]) { - VMSTATE_SSI_PERIPHERAL(ssidev, ZipitLCD), - VMSTATE_INT32(selected, ZipitLCD), - VMSTATE_INT32(enabled, ZipitLCD), - VMSTATE_BUFFER(buf, ZipitLCD), - VMSTATE_UINT32(cur_reg, ZipitLCD), - VMSTATE_INT32(pos, ZipitLCD), - VMSTATE_END_OF_LIST(), - } -}; - -static void zipit_lcd_class_init(ObjectClass *klass, void *data) -{ - DeviceClass *dc =3D DEVICE_CLASS(klass); - SSIPeripheralClass *k =3D SSI_PERIPHERAL_CLASS(klass); - - k->realize =3D zipit_lcd_realize; - k->transfer =3D zipit_lcd_transfer; - dc->vmsd =3D &vmstate_zipit_lcd_state; -} - -static const TypeInfo zipit_lcd_info =3D { - .name =3D TYPE_ZIPIT_LCD, - .parent =3D TYPE_SSI_PERIPHERAL, - .instance_size =3D sizeof(ZipitLCD), - .class_init =3D zipit_lcd_class_init, -}; - -#define TYPE_AER915 "aer915" -OBJECT_DECLARE_SIMPLE_TYPE(AER915State, AER915) - -struct AER915State { - I2CSlave parent_obj; - - int len; - uint8_t buf[3]; -}; - -static int aer915_send(I2CSlave *i2c, uint8_t data) -{ - AER915State *s =3D AER915(i2c); - - s->buf[s->len] =3D data; - if (s->len++ > 2) { - trace_z2_aer915_send_too_long(s->len); - return 1; - } - - if (s->len =3D=3D 2) { - trace_z2_aer915_send(s->buf[0], s->buf[1]); - } - - return 0; -} - -static int aer915_event(I2CSlave *i2c, enum i2c_event event) -{ - AER915State *s =3D AER915(i2c); - - trace_z2_aer915_event(s->len, event); - switch (event) { - case I2C_START_SEND: - s->len =3D 0; - break; - case I2C_START_RECV: - break; - case I2C_FINISH: - break; - default: - break; - } - - return 0; -} - -static uint8_t aer915_recv(I2CSlave *slave) -{ - AER915State *s =3D AER915(slave); - int retval =3D 0x00; - - switch (s->buf[0]) { - /* Return hardcoded battery voltage, - * 0xf0 means ~4.1V - */ - case 0x02: - retval =3D 0xf0; - break; - /* Return 0x00 for other regs, - * we don't know what they are for, - * anyway they return 0x00 on real hardware. - */ - default: - break; - } - - return retval; -} - -static const VMStateDescription vmstate_aer915_state =3D { - .name =3D "aer915", - .version_id =3D 1, - .minimum_version_id =3D 1, - .fields =3D (const VMStateField[]) { - VMSTATE_INT32(len, AER915State), - VMSTATE_BUFFER(buf, AER915State), - VMSTATE_END_OF_LIST(), - } -}; - -static void aer915_class_init(ObjectClass *klass, void *data) -{ - DeviceClass *dc =3D DEVICE_CLASS(klass); - I2CSlaveClass *k =3D I2C_SLAVE_CLASS(klass); - - k->event =3D aer915_event; - k->recv =3D aer915_recv; - k->send =3D aer915_send; - dc->vmsd =3D &vmstate_aer915_state; -} - -static const TypeInfo aer915_info =3D { - .name =3D TYPE_AER915, - .parent =3D TYPE_I2C_SLAVE, - .instance_size =3D sizeof(AER915State), - .class_init =3D aer915_class_init, -}; - -#define FLASH_SECTOR_SIZE (64 * KiB) - -static void z2_init(MachineState *machine) -{ - PXA2xxState *mpu; - DriveInfo *dinfo; - void *z2_lcd; - I2CBus *bus; - DeviceState *wm; - I2CSlave *i2c_dev; - - /* Setup CPU & memory */ - mpu =3D pxa270_init(z2_binfo.ram_size, machine->cpu_type); - - dinfo =3D drive_get(IF_PFLASH, 0, 0); - pflash_cfi01_register(Z2_FLASH_BASE, "z2.flash0", Z2_FLASH_SIZE, - dinfo ? blk_by_legacy_dinfo(dinfo) : NULL, - FLASH_SECTOR_SIZE, 4, 0, 0, 0, 0, 0); - - /* setup keypad */ - pxa27x_register_keypad(mpu->kp, map, 0x100); - - /* MMC/SD host */ - pxa2xx_mmci_handlers(mpu->mmc, - NULL, - qdev_get_gpio_in(mpu->gpio, Z2_GPIO_SD_DETECT)); - - type_register_static(&zipit_lcd_info); - type_register_static(&aer915_info); - z2_lcd =3D ssi_create_peripheral(mpu->ssp[1], TYPE_ZIPIT_LCD); - bus =3D pxa2xx_i2c_bus(mpu->i2c[0]); - - i2c_slave_create_simple(bus, TYPE_AER915, 0x55); - - i2c_dev =3D i2c_slave_new(TYPE_WM8750, 0x1b); - wm =3D DEVICE(i2c_dev); - - if (machine->audiodev) { - qdev_prop_set_string(wm, "audiodev", machine->audiodev); - } - i2c_slave_realize_and_unref(i2c_dev, bus, &error_abort); - - mpu->i2s->opaque =3D wm; - mpu->i2s->codec_out =3D wm8750_dac_dat; - mpu->i2s->codec_in =3D wm8750_adc_dat; - wm8750_data_req_set(wm, mpu->i2s->data_req, mpu->i2s); - - qdev_connect_gpio_out(mpu->gpio, Z2_GPIO_LCD_CS, - qemu_allocate_irq(z2_lcd_cs, z2_lcd, 0)); - - z2_binfo.board_id =3D 0x6dd; - arm_load_kernel(mpu->cpu, machine, &z2_binfo); -} - -static void z2_machine_init(MachineClass *mc) -{ - mc->desc =3D "Zipit Z2 (PXA27x)"; - mc->init =3D z2_init; - mc->ignore_memory_transaction_failures =3D true; - mc->default_cpu_type =3D ARM_CPU_TYPE_NAME("pxa270-c5"); - mc->deprecation_reason =3D "machine is old and unmaintained"; - - machine_add_audiodev_property(mc); -} - -DEFINE_MACHINE("z2", z2_machine_init) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 84cc34f016c..c2452bd7b91 100644 --- a/hw/arm/Kconfig +++ b/hw/arm/Kconfig @@ -176,15 +176,6 @@ config PXA2XX select USB_OHCI_SYSBUS select PCMCIA =20 -config Z2 - bool - default y - depends on TCG && ARM - select PFLASH_CFI01 - select WM8750 - select PL011 # UART - select PXA2XX - config REALVIEW bool default y diff --git a/hw/arm/meson.build b/hw/arm/meson.build index 72afb9e62a7..1a4a51d6302 100644 --- a/hw/arm/meson.build +++ b/hw/arm/meson.build @@ -71,6 +71,5 @@ system_ss.add(when: 'CONFIG_STRONGARM', if_true: files('s= trongarm.c')) system_ss.add(when: 'CONFIG_SX1', if_true: files('omap_sx1.c')) system_ss.add(when: 'CONFIG_VERSATILE', if_true: files('versatilepb.c')) system_ss.add(when: 'CONFIG_VEXPRESS', if_true: files('vexpress.c')) -system_ss.add(when: 'CONFIG_Z2', if_true: files('z2.c')) =20 hw_arch +=3D {'arm': arm_ss} --=20 2.34.1