From: gabriel291075@gmail.com
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org,
Gabriel Augusto Costa <gabriel291075@gmail.com>
Subject: [Qemu-devel] [PATCH v2] arm: Adding makefile for Kinetis K64 MK64FN1M0
Date: Thu, 19 Oct 2017 08:51:25 -0400 [thread overview]
Message-ID: <1508417485-31911-1-git-send-email-gabriel291075@gmail.com> (raw)
From: Gabriel Augusto Costa <gabriel291075@gmail.com>
I add a new arm machine with some peripherals. The machine is mk64fn1m0, a
cortex-m4 microcontroller from NXP Kinetis family. The machine can run a
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-boot.
In my opinion put all files in the same folder "/hw/arm" is not a good idea,
or put all code in an unique file, because machines from the same family
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.
Signed-off-by: Gabriel Augusto Costa <gabriel291075@gmail.com>
---
hw/arm/Makefile.objs | 4 ++++
1 file changed, 4 insertions(+)
mode change 100644 => 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) += fsl-imx6.o sabrelite.o
obj-$(CONFIG_ASPEED_SOC) += aspeed_soc.o aspeed.o
obj-$(CONFIG_MPS2) += mps2.o
obj-$(CONFIG_MSF2) += msf2-soc.o msf2-som.o
+obj-y += 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
+
--
2.1.4
next reply other threads:[~2017-10-19 16:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-19 12:51 gabriel291075 [this message]
2017-10-19 17:52 ` [Qemu-devel] [PATCH v2] arm: Adding makefile for Kinetis K64 MK64FN1M0 no-reply
2017-10-19 18:55 ` no-reply
2017-10-19 19:29 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1508417485-31911-1-git-send-email-gabriel291075@gmail.com \
--to=gabriel291075@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).