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

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

View File

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

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