Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
u-boot-imx
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arm-boot
u-boot-imx
Commits
f540c42d
Commit
f540c42d
authored
Dec 19, 2007
by
Harald Welte
Committed by
Wolfgang Denk
Jan 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix building with CRAMFS but not JFFS2 support
Signed-off-by:
Harald Welte
<
laforge@openmoko.org
>
parent
23d0baf9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
cmd_jffs2.c
common/cmd_jffs2.c
+9
-0
cramfs.c
fs/cramfs/cramfs.c
+1
-1
No files found.
common/cmd_jffs2.c
View file @
f540c42d
...
...
@@ -167,10 +167,19 @@ struct list_head devices;
static
struct
mtd_device
*
current_dev
=
NULL
;
static
u8
current_partnum
=
0
;
#if defined(CONFIG_CMD_CRAMFS)
extern
int
cramfs_check
(
struct
part_info
*
info
);
extern
int
cramfs_load
(
char
*
loadoffset
,
struct
part_info
*
info
,
char
*
filename
);
extern
int
cramfs_ls
(
struct
part_info
*
info
,
char
*
filename
);
extern
int
cramfs_info
(
struct
part_info
*
info
);
#else
/* defining empty macros for function names is ugly but avoids ifdef clutter
* all over the code */
#define cramfs_check(x) (0)
#define cramfs_load(x,y,z) (-1)
#define cramfs_ls(x,y) (0)
#define cramfs_info(x) (0)
#endif
static
struct
part_info
*
jffs2_part_info
(
struct
mtd_device
*
dev
,
unsigned
int
part_num
);
...
...
fs/cramfs/cramfs.c
View file @
f540c42d
...
...
@@ -27,7 +27,7 @@
#include <common.h>
#include <malloc.h>
#if defined(CONFIG_CMD_
JFFS2
)
#if defined(CONFIG_CMD_
CRAMFS
)
#include <asm/byteorder.h>
#include <linux/stat.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment