In function ?SetDevicePathEndNode?, inlined from ?FileDevicePath? at DevicePathUtilities.c:857:5: DevicePathUtilities.c:321:3: error: writing 4 bytes into a region of size 1 [-Werror=stringop-overflow=] 321 | memcpy (Node, &mUefiDevicePathLibEndDevicePath, sizeof (mUefiDevicePathLibEndDevicePath)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from UefiDevicePathLib.h:22, from DevicePathUtilities.c:16: ../Include/Protocol/DevicePath.h: In function ?FileDevicePath?: ../Include/Protocol/DevicePath.h:51:9: note: destination object ?Type? of size 1 51 | UINT8 Type; ///< 0x01 Hardware Device Path. | ^~~~ Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
28 lines
604 B
Makefile
28 lines
604 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
|
|
|
|
# gcc 12 trips over device path handling
|
|
BUILD_CFLAGS += -Wno-error=stringop-overflow
|
|
|
|
LIBS = -lCommon
|
|
ifeq ($(CYGWIN), CYGWIN)
|
|
LIBS += -L/lib/e2fsprogs -luuid
|
|
endif
|
|
|
|
ifeq ($(LINUX), Linux)
|
|
LIBS += -luuid
|
|
endif
|
|
|