source: rtems-source-builder/source-builder/sb-rtems-config @ e226605

4.104.114.9
Last change on this file since e226605 was e226605, checked in by Chris Johns <chrisj@…>, on May 13, 2013 at 2:22:18 AM

Add an RTEMS config wrapper around Makefile.inc.

This is an internal command that wraps the Makefile.inc file in
a BSP so you can get at the configuration values from the
command line without knowing anything about Makefile.inc.

To use:

$ ../source-builder/sb-rtems-config \

--rtems=$HOME/development/rtems/4.11 \
--rtems-bsp=sis \

rtems_cpu_cflags

The option '--list' lists all available configuration values.
The configuration values are match case insensitive and you can
list a number with each printed on a separate line.

The --rtems-bsp can be in new coming standard of arch/bsp such as
'sparc/sis' or you can just supply the bsp, eg 'sis'.

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#! /usr/bin/env python
2#
3# RTEMS Tools Project (http://www.rtems.org/)
4# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
5# All rights reserved.
6#
7# This file is part of the RTEMS Tools package in 'rtems-tools'.
8#
9# Permission to use, copy, modify, and/or distribute this software for any
10# purpose with or without fee is hereby granted, provided that the above
11# copyright notice and this permission notice appear in all copies.
12#
13# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
14# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
16# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
19# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20
21import sys, os
22base = os.path.dirname(sys.argv[0])
23sys.path.insert(0, base + '/sb')
24try:
25    import rtemsconfig
26    rtemsconfig.run(sys.argv)
27except ImportError:
28    print >> sys.stderr, "Incorrect Set Bulder installation"
29    sys.exit(1)
Note: See TracBrowser for help on using the repository browser.