[270434cc] | 1 | ## |
---|
| 2 | ## $Id$ |
---|
| 3 | ## |
---|
| 4 | |
---|
| 5 | rtems_tests_PROGRAMS = tar02 |
---|
| 6 | tar02_SOURCES = init.c ../../psxtests/psxfile01/test_cat.c \ |
---|
[48b2c10e] | 7 | initial_filesystem_tar.c initial_filesystem_tar.h |
---|
[270434cc] | 8 | |
---|
| 9 | dist_rtems_tests_DATA = tar02.scn |
---|
| 10 | |
---|
| 11 | include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg |
---|
| 12 | include $(top_srcdir)/../automake/compile.am |
---|
| 13 | include $(top_srcdir)/../automake/leaf.am |
---|
| 14 | |
---|
| 15 | AM_CPPFLAGS += -I$(top_srcdir)/include |
---|
| 16 | AM_CPPFLAGS += -I$(top_srcdir)/../support/include |
---|
| 17 | AM_CPPFLAGS += -I$(top_srcdir)/../psxtests/include |
---|
| 18 | |
---|
| 19 | LINK_OBJS = $(tar02_OBJECTS) $(tar02_LDADD) |
---|
| 20 | LINK_LIBS = $(tar02_LDLIBS) |
---|
| 21 | |
---|
[48b2c10e] | 22 | tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES) |
---|
[270434cc] | 23 | @rm -f tar02$(EXEEXT) |
---|
| 24 | $(make-exe) |
---|
| 25 | |
---|
| 26 | initial_filesystem_tar.c: stamp-initial-fs-source |
---|
| 27 | |
---|
| 28 | initial_filesystem_tar.h: stamp-initial-fs-source |
---|
| 29 | |
---|
| 30 | stamp-initial-fs-source: initial_filesystem.tar |
---|
| 31 | $(BIN2C) initial_filesystem.tar initial_filesystem_tar |
---|
| 32 | touch stamp-initial-fs-source |
---|
| 33 | |
---|
| 34 | stamp-filesystem: |
---|
| 35 | rm -rf initial_fs |
---|
| 36 | mkdir initial_fs |
---|
| 37 | mkdir initial_fs/home |
---|
| 38 | (echo "This is a test of loading an RTEMS filesystem from an" ; \ |
---|
| 39 | echo "initial tar image.") >initial_fs/home/test_file |
---|
| 40 | cd initial_fs && ln -s home/test_file symlink |
---|
| 41 | touch stamp-filesystem |
---|
| 42 | |
---|
| 43 | initial_filesystem.tar: stamp-filesystem |
---|
| 44 | cd initial_fs ; pax -w -f ../initial_filesystem.tar home symlink |
---|
| 45 | |
---|
| 46 | CLEANFILES = initial_filesystem* stamp-filesystem \ |
---|
| 47 | stamp-initial-fs-source |
---|
| 48 | |
---|
| 49 | include $(top_srcdir)/../automake/local.am |
---|