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;
|
||||
|
||||
Reference in New Issue
Block a user