1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 12:38:27 +02:00

Merge remote branch 'origin/usbboot'

This commit is contained in:
Sergey Gridassov 2010-12-04 10:48:08 +03:00
commit a524654c5c
4 changed files with 32 additions and 2 deletions

View File

@ -8,7 +8,7 @@ endif
CC = gcc CC = gcc
TARGET = jzboot 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) CFLAGS = --std=gnu99 -Wall -Werror -O2 $(shell pkg-config libusb-1.0 --cflags)
LIBS += $(shell pkg-config libusb-1.0 --libs) LIBS += $(shell pkg-config libusb-1.0 --libs)

View File

@ -395,6 +395,7 @@ static const struct {
const shell_command_t *commands; const shell_command_t *commands;
} cmdsets[] = { } cmdsets[] = {
{ CMDSET_SPL, "SPL", spl_cmdset }, { CMDSET_SPL, "SPL", spl_cmdset },
{ CMDSET_USBBOOT, "USBBoot", usbboot_cmdset },
{ 0, NULL, NULL } { 0, NULL, NULL }
}; };

View File

@ -45,5 +45,6 @@ extern char *strval;
int shell_pull(char *buf, int maxlen); int shell_pull(char *buf, int maxlen);
extern const shell_command_t spl_cmdset[]; extern const shell_command_t spl_cmdset[];
extern const shell_command_t usbboot_cmdset[];
#endif #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 }
};