uboot: add glbtn header

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2024-09-30 14:54:54 +08:00
committed by hanwckf
parent fefe1779a6
commit 3788274583
7 changed files with 27 additions and 10 deletions

View File

@@ -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;

View File

@@ -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,

View File

@@ -0,0 +1,6 @@
#ifndef _GLBTN_H_
#define _GLBTN_H_
void led_control(const char *cmd, const char *name, const char *arg);
#endif

View File

@@ -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;