hake: arch specific dependencies for libposixcompat
authorReto Achermann <reto.achermann@inf.ethz.ch>
Thu, 20 Aug 2015 16:17:14 +0000 (18:17 +0200)
committerReto Achermann <reto.achermann@inf.ethz.ch>
Thu, 20 Aug 2015 16:22:13 +0000 (18:22 +0200)
Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>

hake/RuleDefs.hs
hake/symbolic_targets.mk
lib/posixcompat/Hakefile

index ff59d5c..a7c3c91 100644 (file)
@@ -1148,7 +1148,6 @@ str2dep  str
     | str == "vfs_ramfs"     = libvfs_deps_ramfs str
     | str == "vfs_nonfs"     = libvfs_deps_nonfs str
     | str == "vfs_noblockdev"= libvfs_deps_noblockdev str
-    | str == "posixcompat"   = libposixcompat_deps
     | str == "lwip"          = liblwip_deps
     | str == "netQmng"       = libnetQmng_deps
     | str == "ssh"           = libssh_deps
index c060e9e..04c56e5 100644 (file)
@@ -48,9 +48,6 @@ BIN_RCCE_BT= \
 
 # All test domains
 TESTS_COMMON= \
-       sbin/fputest \
-       sbin/fread_test \
-       sbin/fscanf_test \
        sbin/hellotest \
        sbin/idctest \
        sbin/memtest \
@@ -73,6 +70,9 @@ TESTS_x86_64= \
        sbin/bomp_test \
        sbin/bulk_shm \
        sbin/cryptotest \
+       sbin/fputest \
+       sbin/fread_test \
+       sbin/fscanf_test \
        sbin/mdbtest_addr_zero \
        sbin/mdbtest_range_query \
        sbin/mem_affinity \
index dfa0bbd..c89c8d7 100644 (file)
 -- 
 --------------------------------------------------------------------------
 
-[ build library { target = "posixcompat",
-                  cFiles = [ "access.c",
-                             "alarm.c",
-                             "basename.c",
-                             "chdir.c",
-                             "chmod.c",
-                             "chroot.c",
-                             "close.c",
-                             "creat.c",
-                             "dirent.c",
-                             "dirname.c",
-                             "dlfcn.c",
-                             "dup.c",
-                             "_exit.c",
-                             "fcntl.c",
-                             "fstat.c",
-                             "fsync.c",
-                             "ftruncate.c",
-                             "getcwd.c",
-                             "geteuid.c",
-                             "getgroups.c",
-                             "gethostid.c",
-                             "gethostname.c",
-                             "getpid.c",
-                             "getpwent.c",
-                             "gettimeofday.c",
-                             "grp.c",
-                             "inheritance.c",
-                             "ioctl.c",
-                             "isatty.c",
-                             "kill.c",
-                             "link.c",
-                             "lseek.c",
-                             "mmap.c",
-                             "mkdir.c",
-                             "open.c",
-                             "pipe.c",
-                             "popen.c",
-                             "pty.c",
-                             "random.c",
-                             "read.c",
-                             "readlink.c",
-                             "readv.c",
-                             "remove.c",
-                             "rename.c",
-                             "rmdir.c",
-                             "sbrk.c",
-                             "select.c",
-                             "semaphore.c",
-                             "setitimer.c",
-                             "setsid.c",
-                             "shm.c",
-                             "signal.c",
-                             "sockets.c",
-                             "stat.c",
-                             "sysconf.c",
-                             "termios.c",
-                             "time.c",
-                             "timegm.c",
-                             "ttyname.c",
-                             "umask.c",
-                             "unlink.c",
-                             "utime.c",
-                             "wait.c",
-                             "write.c",
-                             "mkfifo.c",
-                             "setrlimit.c",
-                             "pthreads.c", 
-                             "sleep.c", 
-                             "epoll.c", 
-                             "poll.c",
-                             "inet_ntop.c", 
-                             "inet_pton.c", 
-                             "syslog.c", 
-                             "uname.c" ],
-                  flounderDefs = [ "unixsock", "octopus", "monitor", "terminal", "terminal_config", "terminal_session" ],
-                  flounderBindings = [ "unixsock", "octopus" ],
-                         flounderExtraBindings = [ ("octopus", [ "rpcclient" ]) ],
-                  flounderTHCStubs = [ "octopus" ]
-                }
+[ 
+  build library {
+        target = "posixcompat",
+        cFiles = concat [ find cInDir dir | dir <- ["."] ],
+        flounderDefs = [ "unixsock", "octopus", "monitor", "terminal", "terminal_config", "terminal_session" ],
+        flounderBindings = [ "unixsock", "octopus" ],
+        flounderExtraBindings = [ ("octopus", [ "rpcclient" ]) ],
+        flounderTHCStubs = [ "octopus" ],
+        addLibraries = libDeps [ "vfs",  "term_server" ],
+        architectures = [ "x86_64" ]
+    },
+    build library {
+        target = "posixcompat",
+        cFiles = concat [ find cInDir dir | dir <- ["."] ],
+        flounderDefs = [ "unixsock", "octopus", "monitor", "terminal", "terminal_config", "terminal_session" ],
+        flounderBindings = [ "unixsock", "octopus" ],
+        flounderExtraBindings = [ ("octopus", [ "rpcclient" ]) ],
+        flounderTHCStubs = [ "octopus" ],
+        addLibraries = libDeps [ "vfs_noblockdev",  "term_server" ],
+        architectures = [ "k1om", "armv7" , "armv8" ]
+    }
 ]