mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
Problem was detected while using ccprintf to debug a data role swap
requests issue. To prevent errors similar to this, surround the API call
as follows:
ifndef VIF_BUILD
ccprints("I won't generate an undefined reference when building genvif");
endif
BUG=b:63664511
BRANCH=None
TEST=`make -j buildall`
Change-Id: Ieab9eaa638320cae67995a67c843d08b54acfbcb
Signed-off-by: Sam Hurst <shurst@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/570820
Commit-Ready: Sam Hurst <shurst@google.com>
Tested-by: Sam Hurst <shurst@google.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
# -*- makefile -*-
|
|
# Copyright (c) 2014 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.
|
|
#
|
|
# Host tools build
|
|
#
|
|
|
|
host-util-bin=ectool lbplay stm32mon ec_sb_firmware_update lbcc \
|
|
ec_parse_panicinfo
|
|
build-util-bin=ec_uartd iteflash
|
|
ifeq ($(CHIP),npcx)
|
|
build-util-bin+=ecst
|
|
endif
|
|
|
|
comm-objs=$(util-lock-objs:%=lock/%) comm-host.o comm-dev.o
|
|
comm-objs+=comm-lpc.o comm-i2c.o misc_util.o
|
|
|
|
ectool-objs=ectool.o ectool_keyscan.o ec_flash.o ec_panicinfo.o $(comm-objs)
|
|
ec_sb_firmware_update-objs=ec_sb_firmware_update.o $(comm-objs) misc_util.o
|
|
ec_sb_firmware_update-objs+=powerd_lock.o
|
|
lbplay-objs=lbplay.o $(comm-objs)
|
|
|
|
ec_parse_panicinfo-objs=ec_parse_panicinfo.o ec_panicinfo.o
|
|
|
|
# USB type-C Vendor Information File generation
|
|
ifeq ($(CONFIG_USB_POWER_DELIVERY),y)
|
|
build-util-bin+=genvif
|
|
build-util-art+=$(BOARD)_vif.txt
|
|
$(out)/util/genvif: $(out)/util/usb_pd_policy.o board/$(BOARD)/board.h \
|
|
include/usb_pd.h include/usb_pd_tcpm.h
|
|
$(out)/util/genvif: BUILD_LDFLAGS+=$(out)/util/usb_pd_policy.o -flto
|
|
|
|
STANDALONE_FLAGS=-ffreestanding -fno-builtin -nostdinc \
|
|
-Ibuiltin/ -D"__keep= " -DVIF_BUILD
|
|
$(out)/util/usb_pd_policy.o: board/$(BOARD)/usb_pd_policy.c
|
|
$(call quiet,c_to_vif,BUILDCC)
|
|
deps += $(out)/util/usb_pd_policy.o.d
|
|
endif # CONFIG_USB_POWER_DELIVERY
|