summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
Diffstat (limited to 'cesar')
-rw-r--r--cesar/hal/phy/test/phy/Config9
-rw-r--r--cesar/hal/phy/test/phy/Makefile30
-rw-r--r--cesar/hal/phy/test/phy/ecos.ecc.sh (renamed from cesar/hal/phy/test/phy/sparc-ecos.ecc.sh)0
-rw-r--r--cesar/hal/phy/test/phy/maximus-Makefile14
-rw-r--r--cesar/hal/phy/test/phy/py/test_phy/__init__.py2
-rw-r--r--cesar/hal/phy/test/phy/sparc-Config9
-rw-r--r--cesar/hal/phy/test/phy/sparc-Makefile17
7 files changed, 37 insertions, 44 deletions
diff --git a/cesar/hal/phy/test/phy/Config b/cesar/hal/phy/test/phy/Config
new file mode 100644
index 0000000000..23116773f6
--- /dev/null
+++ b/cesar/hal/phy/test/phy/Config
@@ -0,0 +1,9 @@
+CONFIG_DEBUG = y
+CONFIG_TRACE = y
+CONFIG_TRACE_ON_FATAL = y
+CONFIG_STATS = n
+CONFIG_BLK_NB[target] = 20480
+CONFIG_PHY_TRACE_MORE[target] = y
+CONFIG_PHY_CAP_MASK_DEFAULT[target] = 0
+CONFIG_PHY_ACCESS_WATCHDOG[target] = n
+CONFIG_INTERFACE_SNIFFER[target] = n
diff --git a/cesar/hal/phy/test/phy/Makefile b/cesar/hal/phy/test/phy/Makefile
index 4469ade2ed..2b2ea523d1 100644
--- a/cesar/hal/phy/test/phy/Makefile
+++ b/cesar/hal/phy/test/phy/Makefile
@@ -1,3 +1,27 @@
-all clean:
- $(MAKE) -f maximus-Makefile $@
- $(MAKE) -f sparc-Makefile $@
+BASE = ../../../..
+
+BUILD_TYPES = target target-maximus
+
+TARGET = sparc
+TARGET_ECOS = y
+TARGET_OPTIMIZE = -O2
+TARGET_DEFS = -DTEST_PHY_SIMU=0
+
+TARGET_maximus =
+TARGET_maximus_ECOS = y
+TARGET_maximus_DEFS = -DTEST_PHY_SIMU=1
+
+common_SOURCES = test_phy.c basic.c clk_sync.c access.c data.c gen.c mem.c \
+ burst.c common.c
+
+TARGET_PROGRAMS = test_phy
+test_phy_SOURCES = $(common_SOURCES) dataplane_stub.c
+test_phy_MODULES = lib hal mac/common interface host bufmgr cl/mbx
+
+TARGET_maximus_PROGRAMS = test_phy_maximus
+test_phy_maximus_SOURCES = $(common_SOURCES)
+test_phy_maximus_MODULES = lib host hal/phy/maximus mac/common
+
+mac_common_MODULES_SOURCES = tonemask.c
+
+include $(BASE)/common/make/top.mk
diff --git a/cesar/hal/phy/test/phy/sparc-ecos.ecc.sh b/cesar/hal/phy/test/phy/ecos.ecc.sh
index db2208c6cc..db2208c6cc 100644
--- a/cesar/hal/phy/test/phy/sparc-ecos.ecc.sh
+++ b/cesar/hal/phy/test/phy/ecos.ecc.sh
diff --git a/cesar/hal/phy/test/phy/maximus-Makefile b/cesar/hal/phy/test/phy/maximus-Makefile
deleted file mode 100644
index 668039cf2a..0000000000
--- a/cesar/hal/phy/test/phy/maximus-Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-BASE = ../../../..
-
-ECOS = y
-
-DEFS = -DTEST_PHY_SIMU=1
-
-TARGET_PROGRAMS = test_phy
-test_phy_SOURCES = test_phy.c basic.c clk_sync.c access.c data.c gen.c mem.c \
- burst.c common.c
-test_phy_MODULES = lib host hal/phy/maximus mac/common
-mac_common_MODULES_SOURCES = tonemask.c
-
-VARIANT = maximus
-include $(BASE)/common/make/top.mk
diff --git a/cesar/hal/phy/test/phy/py/test_phy/__init__.py b/cesar/hal/phy/test/phy/py/test_phy/__init__.py
index e095d33c24..a903c81f98 100644
--- a/cesar/hal/phy/test/phy/py/test_phy/__init__.py
+++ b/cesar/hal/phy/test/phy/py/test_phy/__init__.py
@@ -11,7 +11,7 @@ class AutoInit:
sys.path.append ('../../../../maximus/python/obj')
from interface import Maximus
self.maximus = Maximus ()
- self.maximus.init (sys.argv + ['-e', 'obj/maximus/test_phy.elf'])
+ self.maximus.init (sys.argv + ['-e', 'obj/test_phy_maximus.elf'])
self.ref = 1 # uninit is not working.
else:
sys.path.append ('../../../../maximus/python/lib/proto')
diff --git a/cesar/hal/phy/test/phy/sparc-Config b/cesar/hal/phy/test/phy/sparc-Config
deleted file mode 100644
index 086fa3e861..0000000000
--- a/cesar/hal/phy/test/phy/sparc-Config
+++ /dev/null
@@ -1,9 +0,0 @@
-CONFIG_DEBUG=y
-CONFIG_TRACE=y
-CONFIG_TRACE_ON_FATAL=y
-CONFIG_BLK_NB = 20480
-CONFIG_PHY_TRACE_MORE = y
-CONFIG_STATS = n
-CONFIG_PHY_CAP_MASK_DEFAULT = 0
-CONFIG_PHY_ACCESS_WATCHDOG = n
-CONFIG_INTERFACE_SNIFFER = n
diff --git a/cesar/hal/phy/test/phy/sparc-Makefile b/cesar/hal/phy/test/phy/sparc-Makefile
deleted file mode 100644
index 17920522d0..0000000000
--- a/cesar/hal/phy/test/phy/sparc-Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-BASE = ../../../..
-
-ECOS = y
-
-TARGET = sparc
-
-TARGET_OPTIMIZE = -O2
-
-DEFS = -DTEST_PHY_SIMU=0
-
-TARGET_PROGRAMS = test_phy
-test_phy_SOURCES = test_phy.c basic.c clk_sync.c access.c data.c gen.c mem.c \
- burst.c dataplane_stub.c common.c
-test_phy_MODULES = lib hal mac/common interface host bufmgr cl/mbx
-
-VARIANT = sparc
-include $(BASE)/common/make/top.mk