source: rtems/c/src/lib/libbsp/powerpc/psim/tools/Makefile.am @ ff90595

4.104.114.9
Last change on this file since ff90595 was 001b4162, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 3, 2008 at 6:37:51 PM

2008-09-03 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac: Rework psim scripts to share code for creating device trees and actually running the tests. Overhaul the device tree generated to always include a block of Flash and a Real-Time Clock. When running MP tests enable the shared memory and semaphore devices.
  • psim-bottom, psim-gdb-bottom, psim-gdb-top.in, psim-shared, psim-top.in, runtest-bottom, runtest-top.in: New files.
  • psim, psim-gdb, runtest: Removed.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../../aclocal
6
7transform =
8bsptools_bindir = ${exec_prefix}/@RTEMS_BSP@/tests
9bsptools_bin_SCRIPTS = psim psim-gdb runtest
10
11## HACK: install to build-tree
12all-local: psim $(TMPINSTALL_FILES)
13
14TMPINSTALL_FILES =
15
16$(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp):
17        @$(MKDIR_P) $(PROJECT_ROOT)/@RTEMS_BSP@/tests
18        @: > $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
19TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
20
21psim: psim-top psim-shared psim-bottom
22        cat $^ >$@
23        chmod +x $@
24
25psim-gdb: psim-gdb-top psim-shared psim-gdb-bottom
26        cat $^ >$@
27        chmod +x $@
28
29runtest: runtest-top psim-shared runtest-bottom
30        cat $^ >$@
31        chmod +x $@
32
33$(PROJECT_ROOT)/@RTEMS_BSP@/tests/psim: psim $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
34        $(INSTALL_SCRIPT) $< $(PROJECT_ROOT)/@RTEMS_BSP@/tests/psim
35TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/psim
36
37$(PROJECT_ROOT)/@RTEMS_BSP@/tests/psim-gdb: psim-gdb $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
38        $(INSTALL_SCRIPT) $< $(PROJECT_ROOT)/@RTEMS_BSP@/tests/psim-gdb
39TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/psim-gdb
40
41$(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest: runtest $(PROJECT_ROOT)/@RTEMS_BSP@/tests/$(dirstamp)
42        $(INSTALL_SCRIPT) $< $(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest
43TMPINSTALL_FILES += $(PROJECT_ROOT)/@RTEMS_BSP@/tests/runtest
44
45CLEANFILES = $(TMPINSTALL_FILES) psim psim-gdb
46
47include $(top_srcdir)/../../../../../automake/host.am
Note: See TracBrowser for help on using the repository browser.