mirror of
https://github.com/acidanthera/audk.git
synced 2025-10-06 07:58:40 +02:00
Fix the DevicePath tool build failure that was introduced by the fixes: 22130dcd98b4 ("Basetools: turn off gcc12 warning"). Failure cases are: 1. clang 13.1.6 on macOS 2. gcc5.4 Reported-by: Rebecca Cran <rebecca@bsdio.com> Reported-by: Yuwei Chen <yuwei.chen@intel.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Cc: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Yuwei Chen <yuwei.chen@intel.com>
33 lines
736 B
Makefile
33 lines
736 B
Makefile
## @file
|
|
# GNU/Linux makefile for 'DevicePath' module build.
|
|
#
|
|
# Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
ARCH ?= IA32
|
|
MAKEROOT ?= ..
|
|
|
|
APPNAME = DevicePath
|
|
|
|
OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtilities.o
|
|
|
|
include $(MAKEROOT)/Makefiles/app.makefile
|
|
|
|
GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')
|
|
ifneq ("$(GCCVERSION)", "5")
|
|
ifneq ($(CXX), llvm)
|
|
# gcc 12 trips over device path handling
|
|
BUILD_CFLAGS += -Wno-error=stringop-overflow
|
|
endif
|
|
endif
|
|
|
|
LIBS = -lCommon
|
|
ifeq ($(CYGWIN), CYGWIN)
|
|
LIBS += -L/lib/e2fsprogs -luuid
|
|
endif
|
|
|
|
ifeq ($(LINUX), Linux)
|
|
LIBS += -luuid
|
|
endif
|
|
|