diff options
author | Antonello Dettori <dev@dettori.io> | 2016-07-28 13:59:44 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-07-30 19:34:36 +0200 |
commit | 783d0c146f6a2c3710ce7cd9ebe2aabb5825d854 (patch) | |
tree | 5a569f0f1c09d03426f059a4f08579ddc382a385 /payloads/bayou/util/pbuilder/pbuilder.h | |
parent | 28434a9ca7d13e1046212ddc0941ebd23f768af8 (diff) |
bayou: delete pbuilder utility
Delete pbuilder since it is not needed anymore.
Change-Id: I685547e9692944b89521864fc3bee4e9a2f1139f
Signed-off-by: Antonello Dettori <dev@dettori.io>
Reviewed-on: https://review.coreboot.org/15955
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Omar Pakker
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/bayou/util/pbuilder/pbuilder.h')
-rw-r--r-- | payloads/bayou/util/pbuilder/pbuilder.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/payloads/bayou/util/pbuilder/pbuilder.h b/payloads/bayou/util/pbuilder/pbuilder.h deleted file mode 100644 index e92adeefb3..0000000000 --- a/payloads/bayou/util/pbuilder/pbuilder.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of the bayou project. - * - * Copyright (C) 2008 Advanced Micro Devices, Inc. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -#include <stdio.h> - -#ifndef PBUILDER_H_ -#define PBUILDER_H_ - -#include <stdint.h> -#include <stdio.h> - -#define warn(fmt, args...) fprintf(stderr, fmt, ##args) -#define die(fmt, args...) \ - do { fprintf(stderr, fmt, ##args); exit(-1); } \ - while(0) - -struct pentry { - uint8_t index; - uint8_t parent; - uint8_t type; - uint8_t flags; - uint8_t title[64]; - char *file; - char *larname; -}; - -struct config { - int timeout; - int n_entries; - struct pentry **entries; -}; - -struct bpt_config { - uint32_t id; - uint8_t timeout; - uint8_t entries; - uint8_t padding[10]; -}; - -struct bpt_pentry { - uint8_t index; - uint8_t parent; - uint8_t type; - uint8_t flags; - uint8_t title[64]; - uint8_t nlen; -}; - -#define BPT_ID 0x30545042 -#define BPT_TYPE_CHOOSER 0x01 -#define BPT_TYPE_CHAIN 0x02 -#define BPT_TYPE_SUBCHAIN 0x03 - -#define BPT_FLAG_DEFAULT 0x01 -#define BPT_FLAG_NOSHOW 0x02 - -int pbuilder_show_lar(const char *input); -int create_lar_from_config(const char *input, const char *output); -void parseconfig(FILE * stream, struct config *config); - -#endif |