blob: 811bdfb1c22f449560ddfed239139eaa7e55cdb3 [file] [log] [blame] [edit]
# Copyright 2023 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/cpp/sdk_source_set.gni")
config("includes") {
include_dirs = [
# include scheme should be lib/storage/*.h
"//src/firmware",
# for lib/sparse/c/*.h
"//src/storage",
]
}
sdk_source_set("storage") {
sdk_name = "firmware_sdk_storage"
# TODO(https://fxbug.dev/331991540): Determine an appropriate solution for building firmware SDK.
category = "firmware_sdk"
sources = [
"gpt_utils.c",
"gpt_utils.h",
"sparse.c",
"sparse.h",
"storage.c",
"storage.h",
]
include_base = "//src/firmware"
public_deps = [
"//src/storage/lib/sparse/c:sparse",
"//third_party/android/platform/system:sparse_format",
"//third_party/vboot_reference/firmware/lib:gpt_misc",
]
public_configs = [ ":includes" ]
}