Ticket #59: soclib.conf

File soclib.conf, 626 bytes (added by eleuchi.wael@…, 14 years ago)
Line 
1
2# -*- python -*-
3# Maintainers: nipo
4
5def _platform():
6        """
7        Retrieves platform information and make it look-like systemc's
8        lib-xxx thing.
9
10        Working so far with:
11         * linux
12         * darwin
13        """
14        import sys
15        pf = sys.platform
16        # Strip numeric suffix from platform name
17        while pf[-1] in "0123456789":
18                pf = pf[:-1]
19
20        remap_pf = {'darwin':'macosx'}
21        if pf in remap_pf:
22                pf = remap_pf[pf]
23        return pf
24
25config.systemc = Config(
26        base = config.systemc,
27        dir = "${SYSTEMC}",
28        os = _platform(),
29        )
30
31config.default = Config(
32        base = config.build_env,
33        systemc = config.systemc,
34        toolchain = config.toolchain,
35        repos = "/tmp/build/sc",
36        )