uboot: add glbtn header
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
@@ -13,13 +13,14 @@
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <env.h>
|
||||
#ifdef CONFIG_CMD_GL_BTN
|
||||
#include <glbtn.h>
|
||||
#endif
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
#include <version_string.h>
|
||||
#include <efi_loader.h>
|
||||
|
||||
void led_control(const char *cmd, const char *name, const char *arg);
|
||||
|
||||
static void run_preboot_environment_command(void)
|
||||
{
|
||||
char *p;
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
#include <malloc.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#ifdef CONFIG_CMD_GL_BTN
|
||||
#include <glbtn.h>
|
||||
#endif
|
||||
#include <net/tcp.h>
|
||||
#include <net/httpd.h>
|
||||
#include <u-boot/md5.h>
|
||||
@@ -22,8 +25,6 @@
|
||||
#include "../board/mediatek/common/boot_helper.h"
|
||||
#include "fs.h"
|
||||
|
||||
void led_control(const char *cmd, const char *name, const char *arg);
|
||||
|
||||
enum {
|
||||
FW_TYPE_GPT,
|
||||
FW_TYPE_BL2,
|
||||
|
||||
6
uboot-mtk-20220606/include/glbtn.h
Normal file
6
uboot-mtk-20220606/include/glbtn.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef _GLBTN_H_
|
||||
#define _GLBTN_H_
|
||||
|
||||
void led_control(const char *cmd, const char *name, const char *arg);
|
||||
|
||||
#endif
|
||||
@@ -15,8 +15,9 @@
|
||||
#include <net/tcp.h>
|
||||
#include <net/httpd.h>
|
||||
#include <command.h>
|
||||
|
||||
void led_control(const char *cmd, const char *name, const char *arg);
|
||||
#ifdef CONFIG_CMD_GL_BTN
|
||||
#include <glbtn.h>
|
||||
#endif
|
||||
|
||||
struct httpd_instance {
|
||||
struct list_head node;
|
||||
|
||||
@@ -12,13 +12,14 @@
|
||||
#include <linux/string.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <failsafe/fw_type.h>
|
||||
#ifdef CONFIG_CMD_GL_BTN
|
||||
#include <glbtn.h>
|
||||
#endif
|
||||
#include "upgrade_helper.h"
|
||||
#include "colored_print.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
void led_control(const char *cmd, const char *name, const char *arg);
|
||||
|
||||
const char *fw_to_part_name(failsafe_fw_t fw)
|
||||
{
|
||||
switch (fw)
|
||||
|
||||
@@ -13,14 +13,15 @@
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <env.h>
|
||||
#ifdef CONFIG_CMD_GL_BTN
|
||||
#include <glbtn.h>
|
||||
#endif
|
||||
#include <fdtdec.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
#include <version_string.h>
|
||||
#include <efi_loader.h>
|
||||
|
||||
void led_control(const char *cmd, const char *name, const char *arg);
|
||||
|
||||
static void run_preboot_environment_command(void)
|
||||
{
|
||||
char *p;
|
||||
|
||||
6
uboot-mtk-20230718-09eda825/include/glbtn.h
Normal file
6
uboot-mtk-20230718-09eda825/include/glbtn.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef _GLBTN_H_
|
||||
#define _GLBTN_H_
|
||||
|
||||
void led_control(const char *cmd, const char *name, const char *arg);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user