From nobody Sat Sep 21 01:08:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1508433656953973.2859649421193; Thu, 19 Oct 2017 10:20:56 -0700 (PDT) Received: from localhost ([::1]:50390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5EUx-0005Hu-7N for importer@patchew.org; Thu, 19 Oct 2017 13:20:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5E6j-0001Z5-5i for qemu-devel@nongnu.org; Thu, 19 Oct 2017 12:55:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5E6f-00011n-8T for qemu-devel@nongnu.org; Thu, 19 Oct 2017 12:55:45 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:44585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e5E6f-00011W-3f for qemu-devel@nongnu.org; Thu, 19 Oct 2017 12:55:41 -0400 Received: by mail-qk0-x241.google.com with SMTP id r64so11176170qkc.1 for ; Thu, 19 Oct 2017 09:55:40 -0700 (PDT) Received: from localhost.localdomain ([208.94.106.99]) by smtp.gmail.com with ESMTPSA id c69sm9316565qkb.65.2017.10.19.09.55.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Oct 2017 09:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=jwAajAYiulEz5nVK7Dlzb5A3qN4Hnk+4KyRHCFGSFSM=; b=uFwq3ZHRtQnogFamO/+WrAP7Rysu1LqbFWzSwQqlfDKPYfco8zwHg/VTjal38tQn2l gSE79u/WXgHjJAeosSKCBi97h8QB4ymosC8rPc6NG6MgpGJ6x6FnkfBHNnwbErSPw8kN uKX4kifs6pVSzQzTLl3aq8dnRUwlnP27OV92TBD933r2T/vC9CKVno4S+IMuYhMn6Gcr U35yYJBEKb07yebTDqywoclER9pR3/zwYIcvgcVPPn445AbPgCdw5aqDe5gxH0zxRVP7 GOz4Jo3OH3WVAmZYizCeyyu69pFGF+bzIqZnfa/XeckEjjWxG6TcJcIY1dBt2NxIzGFi EMaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jwAajAYiulEz5nVK7Dlzb5A3qN4Hnk+4KyRHCFGSFSM=; b=M7CenGJUvfLkABZlAZhIN/2RWPX4zbrzyX/E6ULH1jGDgCVo3oYNWMIoYjEIPPEtCW Q3Tp6J93kvodMCLygwMRniYHRgG9WpMXLgM8ZJ8ijK5xjdujQVHWUqp5qTuD4fjM8SyF T7rBdoZy7dOcJP6sVuftibhV3VaeItLqn9ernmrdez0nZRBAX/32O7wA3v86EfkVHsY/ WTxqZ8dTAiiDbn8LUTtlltr7bpC9kbYJBbJlnWYsiU1+wkfQi5vxDKsdVb48r1X4wSwe cn8oaQxbY+hV/byLRScdARCwqpW8fdAJY3dzstDeBsQQH9G2BH2J8tsed9ykp5FB+r6E NrOg== X-Gm-Message-State: AMCzsaV6f1bN/RKxTRzA9dw3Uf/9MeMKFXZGcGp1jbE/XzDCGWsauGBo iZwAywaFEQoTSnKweGrWi2TxMx4f X-Google-Smtp-Source: ABhQp+Svi+aJB7yDgQX1okHVU/5zFcK7Ege9STDyR4s8jojARQM6yCm1XoEN7JOfq/QVL7GVW6zBNg== X-Received: by 10.55.20.151 with SMTP id 23mr2958524qku.78.1508432140267; Thu, 19 Oct 2017 09:55:40 -0700 (PDT) From: gabriel291075@gmail.com To: qemu-devel@nongnu.org Date: Thu, 19 Oct 2017 08:51:25 -0400 Message-Id: <1508417485-31911-1-git-send-email-gabriel291075@gmail.com> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::241 Subject: [Qemu-devel] [PATCH v2] arm: Adding makefile for Kinetis K64 MK64FN1M0 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Gabriel Augusto Costa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Gabriel Augusto Costa I add a new arm machine with some peripherals. The machine is mk64fn1m0, a=20 cortex-m4 microcontroller from NXP Kinetis family. The machine can run a=20 simple arm binary file using UART0 in polling mode. I prepared two patchs to include this machine: PATCH v1: Include the machine and peripherals devices; PATCH v2: Change the make file to compile this machine. Also, I made a folder tree to accomodate this machine more or less like u-b= oot. In my opinion put all files in the same folder "/hw/arm" is not a good idea= ,=20 or put all code in an unique file, because machines from the same family=20 sharing the same peripherals. The folder tree struct is machine/family/peripheral, as an example: kinetis/k64/peripheral. So, in this way the code will be more maintainable. =20 Signed-off-by: Gabriel Augusto Costa --- hw/arm/Makefile.objs | 4 ++++ 1 file changed, 4 insertions(+) mode change 100644 =3D> 100755 hw/arm/Makefile.objs diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs old mode 100644 new mode 100755 index 2794e08..650a0af --- a/hw/arm/Makefile.objs +++ b/hw/arm/Makefile.objs @@ -20,3 +20,7 @@ obj-$(CONFIG_FSL_IMX6) +=3D fsl-imx6.o sabrelite.o obj-$(CONFIG_ASPEED_SOC) +=3D aspeed_soc.o aspeed.o obj-$(CONFIG_MPS2) +=3D mps2.o obj-$(CONFIG_MSF2) +=3D msf2-soc.o msf2-som.o +obj-y +=3D kinetis/k64/mk64fn1m0.o kinetis/k64/peripheral/mcg.o \ + kinetis/k64/peripheral/sim.o kinetis/k64/peripheral/pmux.o \ + kinetis/k64/peripheral/uart.o kinetis/k64/peripheral/flextimer.o +=09 --=20 2.1.4