From 644bb1b079bed1c2ce370aa1a80a3e943ec78a56 Mon Sep 17 00:00:00 2001 From: Matt Delco Date: Tue, 4 Dec 2018 22:05:12 -0800 Subject: cgpt: enable calling CgptEdit This change allows CgptEdit to be called via the API. Prior to this change link fails in an app that uses CgptEdit due to undefined reference. The underlying implementation wasn't checking set_unique so I've fixed that as well. BRANCH=none BUG=None TEST=Added CgptEdit(0) call to extern.c and verified that build failed. Added cgpt_edit.c to Makefile and confirmed that build is now successful. Successfully ran unit tests on both vboot_reference and the app I'm working on that calls CgptEdit (which also has a unit test for setting the drive ID). Change-Id: Ie0a46ff96406eb83d0564d3f1eac978e0565ed76 Signed-off-by: Matt Delco Reviewed-on: https://chromium-review.googlesource.com/1361948 Reviewed-by: Hung-Te Lin Reviewed-by: Julius Werner --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 20f2db91..663e68fd 100644 --- a/Makefile +++ b/Makefile @@ -453,6 +453,7 @@ UTILLIB_SRCS = \ cgpt/cgpt_create.c \ cgpt/cgpt_add.c \ cgpt/cgpt_boot.c \ + cgpt/cgpt_edit.c \ cgpt/cgpt_show.c \ cgpt/cgpt_repair.c \ cgpt/cgpt_prioritize.c \ @@ -496,6 +497,7 @@ HOSTLIB_SRCS = \ cgpt/cgpt_boot.c \ cgpt/cgpt_common.c \ cgpt/cgpt_create.c \ + cgpt/cgpt_edit.c \ cgpt/cgpt_prioritize.c \ firmware/2lib/2common.c \ firmware/2lib/2crc8.c \ -- cgit v1.2.1