Use pic32-tools from uecide.org.
Cannot build user binaries yet though.
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
#define FUSE_USE_VERSION 26
|
||||
#include <fuse.h>
|
||||
|
||||
@@ -125,15 +125,15 @@ struct config {
|
||||
/*
|
||||
* Config has a global notion of which architecture is being used.
|
||||
*/
|
||||
int arch;
|
||||
char *archname;
|
||||
extern int arch;
|
||||
extern char *archname;
|
||||
#define ARCH_PIC32 1
|
||||
|
||||
/*
|
||||
* For each architecture, a set of CPU's may be specified as supported.
|
||||
* These and the options (below) are put in the C flags in the makefile.
|
||||
*/
|
||||
struct cputype {
|
||||
extern struct cputype {
|
||||
char *cpu_name;
|
||||
struct cputype *cpu_next;
|
||||
} *cputype;
|
||||
@@ -143,7 +143,7 @@ struct cputype {
|
||||
* but which may also specify values for the options.
|
||||
* A separate set of options may be defined for make-style options.
|
||||
*/
|
||||
struct opt {
|
||||
extern struct opt {
|
||||
char *op_name;
|
||||
char *op_value;
|
||||
struct opt *op_next;
|
||||
@@ -152,30 +152,30 @@ struct opt {
|
||||
/*
|
||||
* Mapping of signal names to pins.
|
||||
*/
|
||||
struct signal {
|
||||
extern struct signal {
|
||||
char *sig_name;
|
||||
int sig_pin;
|
||||
int sig_invert;
|
||||
struct signal *sig_next;
|
||||
} *siglist;
|
||||
|
||||
char *board;
|
||||
char *ldscript;
|
||||
extern char *board;
|
||||
extern char *ldscript;
|
||||
|
||||
int do_trace;
|
||||
extern int do_trace;
|
||||
|
||||
struct device *dtab;
|
||||
extern struct device *dtab;
|
||||
|
||||
char errbuf[80];
|
||||
int yyline;
|
||||
extern char errbuf[80];
|
||||
extern int yyline;
|
||||
|
||||
struct file_list *ftab, *conf_list, **confp, *comp_list, **compp;
|
||||
extern struct file_list *ftab, *conf_list, **confp, *comp_list, **compp;
|
||||
|
||||
int zone, hadtz;
|
||||
int dst;
|
||||
int debugging;
|
||||
extern int zone, hadtz;
|
||||
extern int dst;
|
||||
extern int debugging;
|
||||
|
||||
int maxusers;
|
||||
extern int maxusers;
|
||||
|
||||
#define eq(a,b) (!strcmp(a,b))
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
#include "config.h"
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
struct device cur;
|
||||
struct device *curp = 0;
|
||||
|
||||
@@ -38,6 +38,23 @@
|
||||
#include "y.tab.h"
|
||||
#include "config.h"
|
||||
|
||||
int arch;
|
||||
char *archname;
|
||||
struct cputype *cputype;
|
||||
struct opt *opt, *mkopt;
|
||||
struct signal *siglist;
|
||||
char *board;
|
||||
char *ldscript;
|
||||
int do_trace;
|
||||
struct device *dtab;
|
||||
char errbuf[80];
|
||||
int yyline;
|
||||
struct file_list *ftab, *conf_list, **confp, *comp_list, **compp;
|
||||
int zone, hadtz;
|
||||
int dst;
|
||||
int debugging;
|
||||
int maxusers;
|
||||
|
||||
/*
|
||||
* Config builds a set of files for building a UNIX
|
||||
* system given a description of the desired system.
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
void swapconf()
|
||||
{
|
||||
|
||||
@@ -373,7 +373,7 @@ static int load_nand_flash_file (nand_flash_1g_data_t * d)
|
||||
int i, j = 0;
|
||||
struct dirent *ent = NULL;
|
||||
DIR *p_dir;
|
||||
char file_path[64];
|
||||
char file_path[1024];
|
||||
char *file_name;
|
||||
char block_number[16];
|
||||
int fd;
|
||||
|
||||
Reference in New Issue
Block a user