blob: d20b8add157581097780c21d823f850bf2622ee3 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
include $(HDCTOOLS_DIR)/defs/
XML_SRC = $(notdir $(wildcard $(HDCTOOLS_SOURCE_DIR)/*.xml))
XML_DST = $(addprefix $(THIS_BUILD_DIR)/,$(XML_SRC))
INA219 = wario.xml waluigi.xml servo_loc.xml link_dvt.xml link.xml \
snow.xml daisy.xml mccroskey.xml spring_v0_r0.xml spring.xml \
pi.xml pit.xml falco.xml peppy.xml rambi.xml nyan.xml \
samus_p1.xml rambi_1v5_r0_loc.xml rambi_2v0_r0_loc.xml \
skate.xml big.xml whale_samus_larvae.xml storm.xml \
veyron_p0.xml veyron_p1.xml veyron_r2.xml samus_evt_v1.xml \
strago_proto.xml veyron_danger_p1.xml ryu_p0_loc.xml oak.xml \
veyron_brain_p1.xml ryu_p5_loc.xml ryu_evt2_loc.xml \
ryu_dvt_loc.xml kunimitsu.xml
INA231 = samus.xml whale_samus_dut.xml
INA3221 = glados_p1_inas.xml glados_r2_inas.xml chell_r1_inas.xml
# TODO(tbroch) should probably be added to if possible
all: $(INA3221) $(INA231) $(INA219) $(XML_DST)
$(MESSAGE) "Copying $(notdir $@)"
$(CP) $< $@
$(MESSAGE) "Building $@"
python2 -B "$(HDCTOOLS_SOURCE_DIR)/" \
$(basename $(<F)) ina219
$(MESSAGE) "Building $@"
python2 -B "$(HDCTOOLS_SOURCE_DIR)/" \
$(basename $(<F)) ina231
$(MESSAGE) "Building $@"
python2 -B "$(HDCTOOLS_SOURCE_DIR)/" \
$(basename $(<F)) ina3221
install: # NOP