Index: src/platform/vboot_reference/utility/cgpt/Makefile |
diff --git a/src/platform/vboot_reference/utility/cgpt/Makefile b/src/platform/vboot_reference/utility/cgpt/Makefile |
index a6f7e79ca0f8034b1631e80de85e210f9971fe62..78de27f773cb0f47a08ec403e088d217ffc16e49 100644 |
--- a/src/platform/vboot_reference/utility/cgpt/Makefile |
+++ b/src/platform/vboot_reference/utility/cgpt/Makefile |
@@ -1,9 +1,12 @@ |
+ |
# Copyright (c) 2009 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. |
TOP ?= ../../ |
CC ?= cc |
+# Include /usr/include from inside the chroot, so that we get a version |
+# of endian.h which contains endian-conversion macros - htole32(), etc. |
INCLUDES += -I$(TOP)/common/include -I$(TOP)/../../../chroot/usr/include/ |
CFLAGS += -Wall -Werror -ggdb |
LIBS += $(FWLIB) |
@@ -13,7 +16,7 @@ DESTDIR ?= /opt/bin |
all: cgpt |
cgpt: cgpt.o cgpt_add_modify_delete.o cgpt_attribute.o cgpt_dev.o \ |
- cgpt_options.o cgpt_repair.o cgpt_show.o $(LIBS) |
+ cgpt_options.o cgpt_repair.o cgpt_show.o cgpt_tofix.o $(LIBS) |
$(CC) -o cgpt $(CFLAGS) $^ |
.c.o: $(INCLUDES) |