]]
+--
+-- Build SKB facts from Sockeye file
+--
+sockeyeProgLoc = In InstallTree "tools" "/bin/sockeye"
+sockeyeSpecFileLoc d = In SrcTree "src" ("/socs" </> (d ++ ".soc"))
+sockeyeFactFilePath d = "/sockeyefacts" </> (d ++ ".pl")
+
+sockeye :: String -> HRule
+sockeye net = Rule [ sockeyeProgLoc,
+ sockeyeSpecFileLoc net,
+ Str "-o", Out "" (sockeyeFactFilePath net)
+ ]
--
-- Build a Fugu library
--- /dev/null
+--------------------------------------------------------------------------
+-- Copyright (c) 2017, ETH Zurich.
+-- All rights reserved.
+--
+-- This file is distributed under the terms in the attached LICENSE file.
+-- If you do not find this file, copies can be found by writing to:
+-- ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
+--
+-- Hakefile for devices/
+--
+--------------------------------------------------------------------------
+
+[ sockeye f
+ | f <- [ "omap4460",
+ "overlayFail"
+ ]
+]
ram is accept [0x80000000/30]
-gptimer5 is accept [0x0/12]
+gptimer5 is accept [0x1/12]
l3 is accept [0-0x40000000]
map [
let ramfs_files = find inDir "programs" ".pl" ++
find inDir ("programs" </> "platforms") ".pl"
+ sockeyeFiles = [ "omap4460" ]
ramdisk = "/skb_ramfs.cpio.gz"
args arch = application {
target = "skb",
Rule ( [ Str "bash",
In SrcTree "src" "skripts/mkcpio",
NoDep SrcTree "src" "", Out "root" ramdisk]
- ++ [ In SrcTree "src" f | f <- ramfs_files ] )
+ ++ [ In SrcTree "src" f | f <- ramfs_files ]
+ ++ [ In BuildTree "" (sockeyeFactFilePath f) | f <- sockeyeFiles ] )
]