All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] arm: Adding makefile for Kinetis K64 MK64FN1M0
@ 2017-10-19 12:51 gabriel291075
  2017-10-19 17:52 ` no-reply
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gabriel291075 @ 2017-10-19 12:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Gabriel Augusto Costa

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-21  5:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-19 12:51 [Qemu-devel] [PATCH v2] arm: Adding makefile for Kinetis K64 MK64FN1M0 gabriel291075
2017-10-19 17:52 ` no-reply
2017-10-19 18:55 ` no-reply
2017-10-19 19:29 ` no-reply

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.