-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add s90 from err99 in 3 posts starting at http://chdk.setepontos.com/…
…index.php/topic,650.msg49290.html#msg49290 git-svn-id: http://tools.assembla.com/svn/chdk/trunk@888 6794e30b-3f2a-0410-a806-a2bbca1c07ff
- Loading branch information
reyalp
committed
Apr 26, 2010
1 parent
8410e70
commit 3f555ec
Showing
59 changed files
with
10,492 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
curdir=./ | ||
topdir=../../ | ||
|
||
include $(topdir)makefile.inc | ||
SUBDIRS=resetcode | ||
|
||
LDLIBS= | ||
LDOPTS=-nostdlib -Wl,--allow-shlib-undefined -Wl,--no-define-common,-EL,-T,$(topdir)tools/link-boot.ld | ||
LDOPTS+=-Wl,-N,-Ttext,$(MEMBASEADDR) | ||
|
||
CPPFLAGS+=-I. | ||
|
||
CORE_FILE=$(topdir)core/main.bin | ||
RESET_FILE=$(curdir)resetcode/main.bin | ||
|
||
CPPFLAGS+=-DCORE_FILE=\"$(CORE_FILE)\" | ||
CPPFLAGS+=-DRESET_FILE=\"$(RESET_FILE)\" | ||
|
||
all: all-recursive main.bin | ||
|
||
OBJS=entry.o main.o blobs.o | ||
|
||
main.bin: main.elf | ||
@echo $< \-\> $@ | ||
$(OBJDUMP) -z -d main.elf > main.dump | ||
$(OBJCOPY) -O binary main.elf main.bin | ||
|
||
main.elf: $(OBJS) | ||
@echo \-\> $@ | ||
$(CC) $(CFLAGS) -o $@ $^ $(LDLIBS) $(LDFLAGS) $(LDOPTS) | ||
( $(NM) $@ | grep ' U ' > $@.syms ) && exit 1 || exit 0 | ||
|
||
clean: clean-recursive | ||
rm -f $(OBJS) main.bin main.elf main.dump main.elf.syms | ||
|
||
distclean: distclean-recursive | ||
rm -f $(OBJS) main.bin main.elf main.dump main.elf.syms | ||
rm -f reboot_core.h copy_and_reset.h | ||
|
||
blobs.o: $(RESET_FILE) $(CORE_FILE) | ||
|
||
include $(topdir)bottom.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.globl blob_copy_and_reset, blob_copy_and_reset_size | ||
.globl blob_chdk_core, blob_chdk_core_size | ||
|
||
|
||
.section .blob_copy_and_reset | ||
blob_copy_and_reset_start: | ||
.incbin RESET_FILE | ||
blob_copy_and_reset_end: | ||
|
||
|
||
|
||
.section .blob_chdk_core | ||
blob_chdk_core_start: | ||
.incbin CORE_FILE | ||
blob_chdk_core_end: | ||
|
||
|
||
.text | ||
blob_chdk_core_size: | ||
.long blob_chdk_core_end - blob_chdk_core_start | ||
blob_chdk_core: | ||
.long blob_chdk_core_start | ||
|
||
|
||
blob_copy_and_reset_size: | ||
.long blob_copy_and_reset_end - blob_copy_and_reset_start | ||
blob_copy_and_reset: | ||
.long blob_copy_and_reset_start |
Oops, something went wrong.