mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-01 10:22:48 +02:00
Add USBBoot cmdset skeleton.
This commit is contained in:
parent
4f6670e5af
commit
5d8f35d88e
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ endif
|
||||
|
||||
CC = gcc
|
||||
TARGET = jzboot
|
||||
SOURCES = debug.c devmgr.c ingenic.c main.c shell_lex.c usbdev.c shell.c config.c spl_cmdset.c
|
||||
SOURCES = debug.c devmgr.c ingenic.c main.c shell_lex.c usbdev.c shell.c config.c spl_cmdset.c usbboot_cmdset.c
|
||||
CFLAGS = --std=gnu99 -Wall -Werror -O2 $(shell pkg-config libusb-1.0 --cflags)
|
||||
LIBS += $(shell pkg-config libusb-1.0 --libs)
|
||||
|
||||
|
3
shell.c
3
shell.c
@ -399,7 +399,8 @@ static const struct {
|
||||
const char *name;
|
||||
const shell_command_t *commands;
|
||||
} cmdsets[] = {
|
||||
{ CMDSET_SPL, "SPL", spl_cmdset },
|
||||
{ CMDSET_SPL, "SPL", spl_cmdset },
|
||||
{ CMDSET_USBBOOT, "USBBoot", usbboot_cmdset },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
|
||||
|
1
shell.h
1
shell.h
@ -45,5 +45,6 @@ extern char *strval;
|
||||
int shell_pull(char *buf, int maxlen);
|
||||
|
||||
extern const shell_command_t spl_cmdset[];
|
||||
extern const shell_command_t usbboot_cmdset[];
|
||||
|
||||
#endif
|
||||
|
28
usbboot_cmdset.c
Normal file
28
usbboot_cmdset.c
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* JzBoot: an USB bootloader for JZ series of Ingenic(R) microprocessors.
|
||||
* Copyright (C) 2010 Peter Zotov <whitequark@whitequark.org>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "shell.h"
|
||||
#include "config.h"
|
||||
#include "ingenic.h"
|
||||
|
||||
const shell_command_t usbboot_cmdset[] = {
|
||||
{ NULL, NULL, NULL }
|
||||
};
|
Loading…
Reference in New Issue
Block a user