1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 18:03:08 +02:00

Add USBBoot cmdset skeleton.

This commit is contained in:
Peter Zotov 2010-12-04 06:43:15 +03:00
parent 4f6670e5af
commit 5d8f35d88e
4 changed files with 32 additions and 2 deletions

View File

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

View File

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

View File

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