Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
fea72637
Commit
fea72637
authored
Jul 01, 2008
by
Jesper Nilsson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'build_fix' into cris
parents
53e43d01
f3c4b53d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
61 deletions
+74
-61
arch/cris/arch-v10/boot/compressed/Makefile
arch/cris/arch-v10/boot/compressed/Makefile
+1
-1
arch/cris/arch-v10/boot/compressed/misc.c
arch/cris/arch-v10/boot/compressed/misc.c
+70
-57
arch/cris/arch-v10/boot/rescue/Makefile
arch/cris/arch-v10/boot/rescue/Makefile
+1
-1
arch/cris/arch-v32/boot/compressed/Makefile
arch/cris/arch-v32/boot/compressed/Makefile
+1
-1
arch/cris/arch-v32/boot/rescue/Makefile
arch/cris/arch-v32/boot/rescue/Makefile
+1
-1
No files found.
arch/cris/arch-v10/boot/compressed/Makefile
View file @
fea72637
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
asflags-y
+=
$(LINUXINCLUDE)
asflags-y
+=
$(LINUXINCLUDE)
ccflags-y
+=
-O2
$(LINUXINCLUDE)
ccflags-y
+=
-O2
$(LINUXINCLUDE)
ldflags-y
+=
-T
$(obj)
/decompress.ld
ldflags-y
+=
-T
$(
srctree)
/
$(
obj)
/decompress.ld
OBJECTS
=
$(obj)
/head.o
$(obj)
/misc.o
OBJECTS
=
$(obj)
/head.o
$(obj)
/misc.o
OBJCOPYFLAGS
=
-O
binary
--remove-section
=
.bss
OBJCOPYFLAGS
=
-O
binary
--remove-section
=
.bss
...
...
arch/cris/arch-v10/boot/compressed/misc.c
View file @
fea72637
...
@@ -29,11 +29,10 @@
...
@@ -29,11 +29,10 @@
#define OF(args) args
#define OF(args) args
#define STATIC static
#define STATIC static
void
*
memset
(
void
*
s
,
int
c
,
size_t
n
);
void
*
memset
(
void
*
s
,
int
c
,
size_t
n
);
void
*
memcpy
(
void
*
__dest
,
__const
void
*
__src
,
size_t
__n
);
void
*
memcpy
(
void
*
__dest
,
__const
void
*
__src
,
size_t
__n
);
#define memzero(s, n) memset ((s), 0, (n))
#define memzero(s, n) memset((s), 0, (n))
typedef
unsigned
char
uch
;
typedef
unsigned
char
uch
;
typedef
unsigned
short
ush
;
typedef
unsigned
short
ush
;
...
@@ -61,23 +60,38 @@ static unsigned outcnt = 0; /* bytes in output buffer */
...
@@ -61,23 +60,38 @@ static unsigned outcnt = 0; /* bytes in output buffer */
#define ENCRYPTED 0x20
/* bit 5 set: file is encrypted */
#define ENCRYPTED 0x20
/* bit 5 set: file is encrypted */
#define RESERVED 0xC0
/* bit 6,7: reserved */
#define RESERVED 0xC0
/* bit 6,7: reserved */
#define get_byte()
inbuf[inptr++]
#define get_byte()
(inbuf[inptr++])
/* Diagnostic functions */
/* Diagnostic functions */
#ifdef DEBUG
#ifdef DEBUG
# define Assert(cond,msg) {if(!(cond)) error(msg);}
# define Assert(cond, msg) do { \
if (!(cond)) \
error(msg); \
} while (0)
# define Trace(x) fprintf x
# define Trace(x) fprintf x
# define Tracev(x) {if (verbose) fprintf x ;}
# define Tracev(x) do { \
# define Tracevv(x) {if (verbose>1) fprintf x ;}
if (verbose) \
# define Tracec(c,x) {if (verbose && (c)) fprintf x ;}
fprintf x; \
# define Tracecv(c,x) {if (verbose>1 && (c)) fprintf x ;}
} while (0)
# define Tracevv(x) do { \
if (verbose > 1) \
fprintf x; \
} while (0)
# define Tracec(c, x) do { \
if (verbose && (c)) \
fprintf x; \
} while (0)
# define Tracecv(c, x) do { \
if (verbose > 1 && (c)) \
fprintf x; \
} while (0)
#else
#else
# define Assert(cond,msg)
# define Assert(cond,
msg)
# define Trace(x)
# define Trace(x)
# define Tracev(x)
# define Tracev(x)
# define Tracevv(x)
# define Tracevv(x)
# define Tracec(c,x)
# define Tracec(c,
x)
# define Tracecv(c,x)
# define Tracecv(c,
x)
#endif
#endif
static
void
flush_window
(
void
);
static
void
flush_window
(
void
);
...
@@ -107,7 +121,8 @@ static void *malloc(int size)
...
@@ -107,7 +121,8 @@ static void *malloc(int size)
{
{
void
*
p
;
void
*
p
;
if
(
size
<
0
)
error
(
"Malloc error"
);
if
(
size
<
0
)
error
(
"Malloc error"
);
free_mem_ptr
=
(
free_mem_ptr
+
3
)
&
~
3
;
/* Align */
free_mem_ptr
=
(
free_mem_ptr
+
3
)
&
~
3
;
/* Align */
...
@@ -137,46 +152,45 @@ static void
...
@@ -137,46 +152,45 @@ static void
puts
(
const
char
*
s
)
puts
(
const
char
*
s
)
{
{
#ifndef CONFIG_ETRAX_DEBUG_PORT_NULL
#ifndef CONFIG_ETRAX_DEBUG_PORT_NULL
while
(
*
s
)
{
while
(
*
s
)
{
#ifdef CONFIG_ETRAX_DEBUG_PORT0
#ifdef CONFIG_ETRAX_DEBUG_PORT0
while
(
!
(
*
R_SERIAL0_STATUS
&
(
1
<<
5
)))
;
while
(
!
(
*
R_SERIAL0_STATUS
&
(
1
<<
5
)))
;
*
R_SERIAL0_TR_DATA
=
*
s
++
;
*
R_SERIAL0_TR_DATA
=
*
s
++
;
#endif
#endif
#ifdef CONFIG_ETRAX_DEBUG_PORT1
#ifdef CONFIG_ETRAX_DEBUG_PORT1
while
(
!
(
*
R_SERIAL1_STATUS
&
(
1
<<
5
)))
;
while
(
!
(
*
R_SERIAL1_STATUS
&
(
1
<<
5
)))
;
*
R_SERIAL1_TR_DATA
=
*
s
++
;
*
R_SERIAL1_TR_DATA
=
*
s
++
;
#endif
#endif
#ifdef CONFIG_ETRAX_DEBUG_PORT2
#ifdef CONFIG_ETRAX_DEBUG_PORT2
while
(
!
(
*
R_SERIAL2_STATUS
&
(
1
<<
5
)))
;
while
(
!
(
*
R_SERIAL2_STATUS
&
(
1
<<
5
)))
;
*
R_SERIAL2_TR_DATA
=
*
s
++
;
*
R_SERIAL2_TR_DATA
=
*
s
++
;
#endif
#endif
#ifdef CONFIG_ETRAX_DEBUG_PORT3
#ifdef CONFIG_ETRAX_DEBUG_PORT3
while
(
!
(
*
R_SERIAL3_STATUS
&
(
1
<<
5
)))
;
while
(
!
(
*
R_SERIAL3_STATUS
&
(
1
<<
5
)))
;
*
R_SERIAL3_TR_DATA
=
*
s
++
;
*
R_SERIAL3_TR_DATA
=
*
s
++
;
#endif
#endif
}
}
#endif
#endif
}
}
void
*
void
*
memset
(
void
*
s
,
int
c
,
size_t
n
)
memset
(
void
*
s
,
int
c
,
size_t
n
)
{
{
int
i
;
int
i
;
char
*
ss
=
(
char
*
)
s
;
char
*
ss
=
(
char
*
)
s
;
for
(
i
=
0
;
i
<
n
;
i
++
)
ss
[
i
]
=
c
;
for
(
i
=
0
;
i
<
n
;
i
++
)
ss
[
i
]
=
c
;
return
s
;
return
s
;
}
}
void
*
void
*
memcpy
(
void
*
__dest
,
__const
void
*
__src
,
size_t
__n
)
memcpy
(
void
*
__dest
,
__const
void
*
__src
,
size_t
__n
)
{
{
int
i
;
int
i
;
char
*
d
=
(
char
*
)
__dest
,
*
s
=
(
char
*
)
__src
;
char
*
d
=
(
char
*
)
__dest
,
*
s
=
(
char
*
)
__src
;
for
(
i
=
0
;
i
<
__n
;
i
++
)
d
[
i
]
=
s
[
i
];
for
(
i
=
0
;
i
<
__n
;
i
++
)
d
[
i
]
=
s
[
i
];
return
__dest
;
return
__dest
;
}
}
...
@@ -186,8 +200,7 @@ memcpy(void* __dest, __const void* __src,
...
@@ -186,8 +200,7 @@ memcpy(void* __dest, __const void* __src,
* (Used for the decompressed data only.)
* (Used for the decompressed data only.)
*/
*/
static
void
static
void
flush_window
(
void
)
flush_window
()
{
{
ulg
c
=
crc
;
/* temporary variable */
ulg
c
=
crc
;
/* temporary variable */
unsigned
n
;
unsigned
n
;
...
@@ -196,7 +209,9 @@ flush_window()
...
@@ -196,7 +209,9 @@ flush_window()
in
=
window
;
in
=
window
;
out
=
&
output_data
[
output_ptr
];
out
=
&
output_data
[
output_ptr
];
for
(
n
=
0
;
n
<
outcnt
;
n
++
)
{
for
(
n
=
0
;
n
<
outcnt
;
n
++
)
{
ch
=
*
out
++
=
*
in
++
;
ch
=
*
out
=
*
in
;
out
++
;
in
++
;
c
=
crc_32_tab
[((
int
)
c
^
ch
)
&
0xff
]
^
(
c
>>
8
);
c
=
crc_32_tab
[((
int
)
c
^
ch
)
&
0xff
]
^
(
c
>>
8
);
}
}
crc
=
c
;
crc
=
c
;
...
@@ -205,14 +220,13 @@ flush_window()
...
@@ -205,14 +220,13 @@ flush_window()
outcnt
=
0
;
outcnt
=
0
;
}
}
static
void
static
void
error
(
char
*
x
)
error
(
char
*
x
)
{
{
puts
(
"
\n\n
"
);
puts
(
"
\n\n
"
);
puts
(
x
);
puts
(
x
);
puts
(
"
\n\n
-- System halted
\n
"
);
puts
(
"
\n\n
-- System halted
\n
"
);
while
(
1
);
/* Halt */
while
(
1
);
/* Halt */
}
}
void
setup_normal_output_buffer
(
void
)
void
setup_normal_output_buffer
(
void
)
...
@@ -255,10 +269,9 @@ void decompress_kernel(void)
...
@@ -255,10 +269,9 @@ void decompress_kernel(void)
makecrc
();
makecrc
();
__asm__
volatile
(
"move $vr,%0"
:
"=rm"
(
revision
));
__asm__
volatile
(
"move $vr,%0"
:
"=rm"
(
revision
));
if
(
revision
<
10
)
if
(
revision
<
10
)
{
{
puts
(
"You need an ETRAX 100LX to run linux 2.6
\n
"
);
puts
(
"You need an ETRAX 100LX to run linux 2.6
\n
"
);
while
(
1
);
while
(
1
);
}
}
puts
(
"Uncompressing Linux...
\n
"
);
puts
(
"Uncompressing Linux...
\n
"
);
...
...
arch/cris/arch-v10/boot/rescue/Makefile
View file @
fea72637
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
ccflags-y
+=
-O2
$(LINUXINCLUDE)
ccflags-y
+=
-O2
$(LINUXINCLUDE)
asflags-y
+=
$(LINUXINCLUDE)
asflags-y
+=
$(LINUXINCLUDE)
ldflags-y
+=
-T
$(obj)
/rescue.ld
ldflags-y
+=
-T
$(
srctree)
/
$(
obj)
/rescue.ld
OBJCOPYFLAGS
=
-O
binary
--remove-section
=
.bss
OBJCOPYFLAGS
=
-O
binary
--remove-section
=
.bss
obj-$(CONFIG_ETRAX_AXISFLASHMAP)
=
head.o
obj-$(CONFIG_ETRAX_AXISFLASHMAP)
=
head.o
OBJECT
:=
$(obj)
/head.o
OBJECT
:=
$(obj)
/head.o
...
...
arch/cris/arch-v32/boot/compressed/Makefile
View file @
fea72637
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
asflags-y
+=
-I
$(srctree)
/include/asm/mach/
-I
$(srctree)
/include/asm/arch
asflags-y
+=
-I
$(srctree)
/include/asm/mach/
-I
$(srctree)
/include/asm/arch
ccflags-y
+=
-O2
-I
$(srctree)
/include/asm/mach/
-I
$(srctree)
/include/asm/arch
ccflags-y
+=
-O2
-I
$(srctree)
/include/asm/mach/
-I
$(srctree)
/include/asm/arch
ldflags-y
+=
-T
$(obj)
/decompress.ld
ldflags-y
+=
-T
$(
srctree)
/
$(
obj)
/decompress.ld
OBJECTS
=
$(obj)
/head.o
$(obj)
/misc.o
OBJECTS
=
$(obj)
/head.o
$(obj)
/misc.o
OBJCOPYFLAGS
=
-O
binary
--remove-section
=
.bss
OBJCOPYFLAGS
=
-O
binary
--remove-section
=
.bss
...
...
arch/cris/arch-v32/boot/rescue/Makefile
View file @
fea72637
...
@@ -7,7 +7,7 @@ ccflags-y += -O2 -I $(srctree)/include/asm/arch/mach/ \
...
@@ -7,7 +7,7 @@ ccflags-y += -O2 -I $(srctree)/include/asm/arch/mach/ \
-I
$(srctree)
/include/asm/arch
-I
$(srctree)
/include/asm/arch
asflags-y
+=
-I
$(srctree)
/include/asm/arch/mach/
-I
$(srctree)
/include/asm/arch
asflags-y
+=
-I
$(srctree)
/include/asm/arch/mach/
-I
$(srctree)
/include/asm/arch
LD
=
gcc-cris
-mlinux
-march
=
v32
-nostdlib
LD
=
gcc-cris
-mlinux
-march
=
v32
-nostdlib
ldflags-y
+=
-T
$(obj)
/rescue.ld
ldflags-y
+=
-T
$(
srctree)
/
$(
obj)
/rescue.ld
LDPOSTFLAGS
=
-lgcc
LDPOSTFLAGS
=
-lgcc
OBJCOPYFLAGS
=
-O
binary
--remove-section
=
.bss
OBJCOPYFLAGS
=
-O
binary
--remove-section
=
.bss
obj-$(CONFIG_ETRAX_AXISFLASHMAP)
=
head.o
obj-$(CONFIG_ETRAX_AXISFLASHMAP)
=
head.o
...
...
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