[rtems commit] bsp/motorola_powerpc: Move polled_io.c

Sebastian Huber sebh at rtems.org
Thu Apr 12 05:17:35 UTC 2018


Module:    rtems
Branch:    master
Commit:    b46f943c56a3bc5fafaa2ec475577da6fa8f3475
Changeset: http://git.rtems.org/rtems/commit/?id=b46f943c56a3bc5fafaa2ec475577da6fa8f3475

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Apr  7 19:38:55 2018 +0200

bsp/motorola_powerpc: Move polled_io.c

This file was used by this BSP only.  Avoid RTEMS_RELLDFLAGS.

This patch is a part of the BSP source reorganization.

Update #3285.

---

 .../console => bsps/powerpc/motorola_powerpc/dev}/console.inl |  0
 .../console => bsps/powerpc/motorola_powerpc/dev}/keyboard.h  |  0
 .../console => bsps/powerpc/motorola_powerpc/dev}/polled_io.c |  4 ++++
 c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am         | 11 +----------
 .../libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am    |  2 +-
 5 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/shared/console/console.inl b/bsps/powerpc/motorola_powerpc/dev/console.inl
similarity index 100%
rename from c/src/lib/libbsp/powerpc/shared/console/console.inl
rename to bsps/powerpc/motorola_powerpc/dev/console.inl
diff --git a/c/src/lib/libbsp/powerpc/shared/console/keyboard.h b/bsps/powerpc/motorola_powerpc/dev/keyboard.h
similarity index 100%
rename from c/src/lib/libbsp/powerpc/shared/console/keyboard.h
rename to bsps/powerpc/motorola_powerpc/dev/keyboard.h
diff --git a/c/src/lib/libbsp/powerpc/shared/console/polled_io.c b/bsps/powerpc/motorola_powerpc/dev/polled_io.c
similarity index 99%
rename from c/src/lib/libbsp/powerpc/shared/console/polled_io.c
rename to bsps/powerpc/motorola_powerpc/dev/polled_io.c
index 331515b..c718459 100644
--- a/c/src/lib/libbsp/powerpc/shared/console/polled_io.c
+++ b/bsps/powerpc/motorola_powerpc/dev/polled_io.c
@@ -24,6 +24,10 @@
 #include <bsp.h>
 #include <libcpu/spr.h>
 
+#ifndef __BOOT__
+#define STATIC_LOG_ALLOC
+#endif
+
 #ifdef BSP_KBD_IOBASE
 #define USE_KBD_SUPPORT
 #endif
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am b/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am
index 75e4332..4fd24a3 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am
@@ -54,14 +54,8 @@ librtemsbsp_a_SOURCES += ../../shared/tod.c ../../powerpc/shared/tod/todcfg.c
 # pclock
 librtemsbsp_a_SOURCES += ../../powerpc/shared/clock/p_clock.c
 
-# Needs conditional compilation
-polledIO_CPPFLAGS = -DSTATIC_LOG_ALLOC
-noinst_PROGRAMS += polledIO.rel
-polledIO_rel_SOURCES = ../../powerpc/shared/console/polled_io.c
-polledIO_rel_CPPFLAGS = $(AM_CPPFLAGS) $(polledIO_CPPFLAGS)
-polledIO_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
-
 # console
+librtemsbsp_a_SOURCES += ../../../../../../bsps/powerpc/motorola_powerpc/dev/polled_io.c
 librtemsbsp_a_SOURCES += ../../powerpc/shared/console/uart.c
 librtemsbsp_a_SOURCES += ../../powerpc/shared/console/console.c
 librtemsbsp_a_SOURCES += ../../powerpc/shared/console/consoleIo.h
@@ -110,9 +104,6 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/mmu/mmuAsm.S
 librtemsbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/mmu/pte121.c
 librtemsbsp_a_SOURCES += ../../../../../../bsps/powerpc/shared/irq/ppc-irq-legacy.c
 
-librtemsbsp_a_LIBADD = polledIO.rel
-
-
 include $(top_srcdir)/../../../../automake/local.am
 include $(srcdir)/../../../../../../bsps/shared/shared-sources.am
 include $(top_srcdir)/../../../../automake/subdirs.am
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am b/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am
index 97f4925..ba22593 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/bootloader/Makefile.am
@@ -13,7 +13,7 @@ bootloader_SOURCES = ../../../powerpc/shared/bootloader/head.S \
     ../../../powerpc/shared/bootloader/zlib.c \
     ../../../powerpc/shared/bootloader/mm.c \
     ../../../powerpc/shared/bootloader/em86.c \
-    ../../../powerpc/shared/console/polled_io.c \
+    ../../../../../../../bsps/powerpc/motorola_powerpc/dev/polled_io.c \
     ../../../powerpc/shared/bootloader/lib.c \
     ../../../powerpc/shared/bootloader/bootldr.h \
     ../../../powerpc/shared/bootloader/zlib.h \



More information about the vc mailing list