mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-15 20:37:33 +00:00
Bundle up the utilities methods used in dump_kernel_config and
export them as a library to be used by post installer programs. A matching change to vboot_reference-9999.ebuild is also required. TEST=Built, verified library symbols with nm on x86-mario, amd64-generic. BUG=chromium-os:25381 Change-Id: Icb23838a8cd804e0c66718c6d4d60f639ee6b72f Reviewed-on: https://gerrit.chromium.org/gerrit/14770 Commit-Ready: Don Garrett <dgarrett@chromium.org> Reviewed-by: Don Garrett <dgarrett@chromium.org> Tested-by: Don Garrett <dgarrett@chromium.org>
This commit is contained in:
19
utility/include/dump_kernel_config.h
Normal file
19
utility/include/dump_kernel_config.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/* Copyright (c) 2012 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.
|
||||
*
|
||||
* Exports the kernel commandline from a given partition/image.
|
||||
*/
|
||||
|
||||
#ifndef DUMP_KERNEL_CONFIG_UTILITY_H_
|
||||
#define DUMP_KERNEL_CONFIG_UTILITY_H_
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
uint8_t* find_kernel_config(uint8_t* blob, uint64_t blob_size,
|
||||
uint64_t kernel_body_load_address);
|
||||
|
||||
void* MapFile(const char* filename, size_t *size);
|
||||
|
||||
#endif // DUMP_KERNEL_CONFIG_UTILITY_H_
|
||||
Reference in New Issue
Block a user