[rtems-libbsd commit] Simplify config.inc and use new reference BSP

Sebastian Huber sebh at rtems.org
Fri Dec 20 10:16:35 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Oct  8 12:52:30 2013 +0200

Simplify config.inc and use new reference BSP

Use arm/realview_pbx_a9_qemu as the new reference BSP.  This BSP offeres
NULL pointer read/write protection and runs on the Qemu simulator.  With
this BSP it is possible to run network tests which use a virtual network
based on TAP devices.

---

 Makefile            |    1 +
 config.inc          |   12 +++++++++---
 freebsd-to-rtems.py |    1 +
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index c0497ec..dbe487b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 include config.inc
 
+RTEMS_MAKEFILE_PATH = $(PREFIX)/$(TARGET)/$(BSP)
 include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
 include $(RTEMS_CUSTOM)
 include $(PROJECT_ROOT)/make/leaf.cfg
diff --git a/config.inc b/config.inc
index 472a906..d396910 100644
--- a/config.inc
+++ b/config.inc
@@ -1,6 +1,12 @@
-BSP = jmr3904
-RTEMS_MAKEFILE_PATH = ${HOME}/newbsd/bsp-install/mips-rtems4.11/$(BSP)
-INSTALL_BASE = ${HOME}/newbsd/install
+# Mandatory: Select your BSP and installation prefix
+TARGET = arm-rtems4.11
+BSP = realview_pbx_a9_qemu
+PREFIX = /opt/rtems-4.11
+
+# Optional: Separate installation base directory
+INSTALL_BASE = $(PREFIX)
+
+# Optional: Network test configuration
 TEST_RUNNER = $(BSP)
 NET_CFG_SELF_IP = 10.0.2.1
 NET_CFG_NETMASK = 255.255.0.0
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 92e8531..ae2ed09 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -406,6 +406,7 @@ class ModuleManager:
 		global tempFile
 		data = 'include config.inc\n' \
 			'\n' \
+			'RTEMS_MAKEFILE_PATH = $(PREFIX)/$(TARGET)/$(BSP)\n' \
 			'include $(RTEMS_MAKEFILE_PATH)/Makefile.inc\n' \
 			'include $(RTEMS_CUSTOM)\n' \
 			'include $(PROJECT_ROOT)/make/leaf.cfg\n' \




More information about the vc mailing list