SConscript revision 9537:ad5b3252dcc6
12810SN/A# -*- mode:python -*-
210764Sandreas.hansson@arm.com
39347SAndreas.Sandberg@arm.com# Copyright (c) 2013 The Regents of The University of Michigan
49347SAndreas.Sandberg@arm.com# All rights reserved.
59347SAndreas.Sandberg@arm.com#
69347SAndreas.Sandberg@arm.com# Redistribution and use in source and binary forms, with or without
79347SAndreas.Sandberg@arm.com# modification, are permitted provided that the following conditions are
89347SAndreas.Sandberg@arm.com# met: redistributions of source code must retain the above copyright
99347SAndreas.Sandberg@arm.com# notice, this list of conditions and the following disclaimer;
109347SAndreas.Sandberg@arm.com# redistributions in binary form must reproduce the above copyright
119347SAndreas.Sandberg@arm.com# notice, this list of conditions and the following disclaimer in the
129347SAndreas.Sandberg@arm.com# documentation and/or other materials provided with the distribution;
139347SAndreas.Sandberg@arm.com# neither the name of the copyright holders nor the names of its
142810SN/A# contributors may be used to endorse or promote products derived from
152810SN/A# this software without specific prior written permission.
162810SN/A#
172810SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182810SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192810SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202810SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212810SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222810SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232810SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242810SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252810SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262810SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272810SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282810SN/A#
292810SN/A# Authors: Anthony Gutierrez
302810SN/A
312810SN/AImport('main')
322810SN/A
332810SN/Afdt_files = []
342810SN/A
352810SN/Adef FdtFile(filename):
362810SN/A    fdt_files.append(File(filename))
372810SN/A
382810SN/AFdtFile('fdt.c')
392810SN/AFdtFile('fdt_ro.c')
402810SN/AFdtFile('fdt_rw.c')
419347SAndreas.Sandberg@arm.comFdtFile('fdt_sw.c')
422810SN/AFdtFile('fdt_wip.c')
432810SN/AFdtFile('fdt_empty_tree.c')
442810SN/AFdtFile('fdt_strerror.c')
454626SN/A
462810SN/Amain.Library('fdt', [main.SharedObject(f) for f in fdt_files])
472810SN/Amain.Prepend(CPPPATH=Dir('.'))
4810509SAli.Saidi@ARM.commain.Append(LIBS=['fdt'])
495338Sstever@gmail.commain.Prepend(LIBPATH=[Dir('.')])
5010509SAli.Saidi@ARM.com