Skip to content

Commit cd3c2bb

Browse files
committed
From sh4-stub_20080830.tar.gz by spacesoft.co.jp
1 parent 5755374 commit cd3c2bb

40 files changed

+4163
-4029
lines changed

COPYING.LIB

100644100755
+482-482
Large diffs are not rendered by default.

ChangeLog

100644100755
+39-37
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
1-
2002-03-20 Shinya Honda <[email protected]>
2-
* sh-sci.c : IPRB������ߥ�����
3-
4-
2001-08-30 Shinya Honda <[email protected]>
5-
* README : �Х�0,1�ε��ҥߥ�����
6-
7-
2001-03-09 Shinya Honda <[email protected]>
8-
* Makefile : S�쥳���ɷ��������Ϥ����褦�ѹ�
9-
��ɬ�פʵ��Ҥ��ѹ�
10-
11-
2001-03-05 Shinya Honda <[email protected]>
12-
* ��ΩĶLSI�����ƥॺ�� MS7709ASE01�Υ��ݡ���
13-
14-
2001-03-01 Shinya Honda <[email protected]>
15-
* ʸ�������ɤ�EUC�˽���
16-
17-
2000-11-24 Shinya Honda <[email protected]>
18-
* README : ��ɩ�ŵ��ޥ����󵡴諒�եȥ������Ƚ���
19-
20-
2000-11-11 Shinya Honda <[email protected]>
21-
* README : �ե�������Խ�
22-
* shcard ���� card-e09a ��̾�����ѹ�
23-
* �ե�����̾ config.h-XXX, config.mk-XXX init-XXX ��
24-
config.h_XXX, config.mk_XXX init_XXX ����ѹ�
25-
26-
27-
2000-11-10 Shinya Honda <[email protected]>
28-
* sh-sci.h,entry.s : DVESH7700��SCI�ǤΥ�⡼�ȥ֥졼���Υ��ݡ���
29-
30-
31-
2000-11-9 Shinya Honda <[email protected]>
32-
* entry.S : �����å���Ȥ�ʤ��褦���ѹ������˥Х�0�� r0 ��
33-
�˲�����
34-
* entry_non_scrach.S : ������ entry.S �򤳤Υե������̾�����ѹ�
35-
36-
37-
1+
2008-04-20 TANAKA Norio <[email protected]>
2+
* �A���t�@�v���W�F�N�g�� MS104-SH4�̃T�|�[�g
3+
4+
2002-03-20 Shinya Honda <[email protected]>
5+
* sh-sci.c : IPRB�̐ݒ�~�X���C��
6+
7+
2001-08-30 Shinya Honda <[email protected]>
8+
* README : �o���N0,1�̋L�q�~�X���C��
9+
10+
2001-03-09 Shinya Honda <[email protected]>
11+
* Makefile : S���R�[�h�`�����o�͂����悤�ύX
12+
�s�K�v�ȋL�q��ύX
13+
14+
2001-03-05 Shinya Honda <[email protected]>
15+
* ������LSI�V�X�e���Y�� MS7709ASE01�̃T�|�[�g
16+
17+
2001-03-01 Shinya Honda <[email protected]>
18+
* �����R�[�h��EUC�ɏC��
19+
20+
2000-11-24 Shinya Honda <[email protected]>
21+
* README : �O�H�d�@�}�C�R���@��\�t�g�E�F�A�ƏC��
22+
23+
2000-11-11 Shinya Honda <[email protected]>
24+
* README : �t�@�C���̕ҏW
25+
* shcard ���� card-e09a �ɖ��O��ύX
26+
* �t�@�C���� config.h-XXX, config.mk-XXX init-XXX ��
27+
config.h_XXX, config.mk_XXX init_XXX ���ɕύX
28+
29+
30+
2000-11-10 Shinya Honda <[email protected]>
31+
* sh-sci.h,entry.s : DVESH7700��SCI�ł̃����[�g�u���[�N�̃T�|�[�g
32+
33+
34+
2000-11-9 Shinya Honda <[email protected]>
35+
* entry.S : �X�^�b�N���g��Ȃ��悤�ɕύX�A���Ƀo���N0�� r0 ��
36+
�j�󂷂�
37+
* entry_non_scrach.S : �ȑO�� entry.S �����̃t�@�C���ɖ��O��ύX
38+
39+

Makefile

100644100755
+112-108
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,112 @@
1-
# $Id: Makefile,v 1.4 2001/03/09 04:55:48 honda Exp $
2-
#
3-
# gdb-sh-stub/Makefile
4-
#
5-
6-
.S.o:
7-
$(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c -o $*.o $<
8-
9-
include config.mk
10-
11-
CROSS_COMPILE= sh-hitachi-elf-
12-
13-
CC =$(CROSS_COMPILE)gcc -I.
14-
LD =$(CROSS_COMPILE)ld
15-
OBJCOPY=$(CROSS_COMPILE)objcopy
16-
17-
CFLAGS = -O2 -g
18-
19-
ifdef CONFIG_CPU_SH3
20-
CFLAGS += -m3
21-
AFLAGS += -m3
22-
endif
23-
ifdef CONFIG_CPU_SH4
24-
CFLAGS += -m4
25-
AFLAGS += -m4
26-
endif
27-
28-
ifdef CONFIG_LITTLE_ENDIAN
29-
CFLAGS += -ml
30-
AFLAGS += -ml
31-
LINKFLAGS += -EL
32-
else
33-
CFLAGS += -mb
34-
AFLAGS += -mb
35-
LINKFLAGS += -EB
36-
endif
37-
38-
CFLAGS += -pipe
39-
LINKSCRIPT = sh-stub.lds
40-
LINKFLAGS += -T $(word 1,$(LINKSCRIPT))
41-
42-
43-
ADJUST_VMA=0x0
44-
45-
46-
ifdef CONFIG_SESH3
47-
MACHINE_DEPENDS := init_sesh3.o
48-
all : sh-stub.src
49-
endif
50-
51-
ifdef CONFIG_CARD_E09A
52-
MACHINE_DEPENDS := init_card-e09a.o
53-
endif
54-
55-
ifdef CONFIG_RSH3
56-
MACHINE_DEPENDS := init_rsh3.o
57-
endif
58-
59-
ifdef CONFIG_DVESH3
60-
MACHINE_DEPENDS := init_dvesh3.o
61-
endif
62-
63-
64-
65-
66-
67-
sh-stub.bin: sh-stub
68-
$(OBJCOPY) -S -R .stack -R .bss -R .comment -O binary \
69-
sh-stub sh-stub.bin
70-
71-
72-
sh-stub.elf: sh-stub
73-
$(OBJCOPY) -S -R .data -R .stack -R .bss -R .comment \
74-
--adjust-vma=${ADJUST_VMA} \
75-
sh-stub sh-stub.elf
76-
77-
sh-stub.hex: sh-stub
78-
$(OBJCOPY) -S -R .data -R .stack -R .bss -R .comment \
79-
--adjust-vma=${ADJUST_VMA} -O ihex \
80-
sh-stub sh-stub.hex
81-
82-
83-
sh-stub.src: sh-stub
84-
$(OBJCOPY) -S -R .stack -R .bss -R .comment \
85-
--adjust-vma=${ADJUST_VMA} -O srec \
86-
sh-stub sh-stub.src
87-
88-
89-
sh-stub: sh-stub.o entry.o ${MACHINE_DEPENDS} sh-sci.o setjmp.o string.o sh-stub.lds
90-
$(LD) $(LINKFLAGS) entry.o sh-stub.o ${MACHINE_DEPENDS} sh-sci.o \
91-
setjmp.o string.o \
92-
-o sh-stub
93-
94-
95-
sh-stub.lds: sh-stub.lds.S
96-
$(CC) -E -C -P -I. sh-stub.lds.S >sh-stub.lds
97-
98-
clean:
99-
rm -rf sh-stub sh-stub.bin sh-stub.elf *.o sh-stub.lds \
100-
sh-stub.src sh-stub.bin sh-stub.hex sh-stu.elf
101-
102-
103-
104-
105-
106-
107-
108-
1+
# $Id: Makefile,v 1.4 2001/03/09 04:55:48 honda Exp $
2+
#
3+
# gdb-sh-stub/Makefile
4+
#
5+
6+
.S.o:
7+
$(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c -o $*.o $<
8+
9+
include config.mk
10+
11+
CROSS_COMPILE= sh-hitachi-elf-
12+
13+
CC =$(CROSS_COMPILE)gcc -I.
14+
LD =$(CROSS_COMPILE)ld
15+
OBJCOPY=$(CROSS_COMPILE)objcopy
16+
17+
CFLAGS = -O2 -g
18+
19+
ifdef CONFIG_CPU_SH3
20+
CFLAGS += -m3
21+
AFLAGS += -m3
22+
endif
23+
ifdef CONFIG_CPU_SH4
24+
CFLAGS += -m4
25+
AFLAGS += -m4
26+
endif
27+
28+
ifdef CONFIG_LITTLE_ENDIAN
29+
CFLAGS += -ml
30+
AFLAGS += -ml
31+
LINKFLAGS += -EL
32+
else
33+
CFLAGS += -mb
34+
AFLAGS += -mb
35+
LINKFLAGS += -EB
36+
endif
37+
38+
CFLAGS += -pipe
39+
LINKSCRIPT = sh-stub.lds
40+
LINKFLAGS += -T $(word 1,$(LINKSCRIPT))
41+
42+
43+
ADJUST_VMA=0x0
44+
45+
46+
ifdef CONFIG_SESH3
47+
MACHINE_DEPENDS := init_sesh3.o
48+
all : sh-stub.src
49+
endif
50+
51+
ifdef CONFIG_CARD_E09A
52+
MACHINE_DEPENDS := init_card-e09a.o
53+
endif
54+
55+
ifdef CONFIG_RSH3
56+
MACHINE_DEPENDS := init_rsh3.o
57+
endif
58+
59+
ifdef CONFIG_DVESH3
60+
MACHINE_DEPENDS := init_dvesh3.o
61+
endif
62+
63+
ifdef CONFIG_MS104SH4
64+
MACHINE_DEPENDS := init_ms104sh4.o
65+
all : sh-stub.src
66+
endif
67+
68+
69+
70+
71+
sh-stub.bin: sh-stub
72+
$(OBJCOPY) -S -R .stack -R .bss -R .comment -O binary \
73+
sh-stub sh-stub.bin
74+
75+
76+
sh-stub.elf: sh-stub
77+
$(OBJCOPY) -S -R .data -R .stack -R .bss -R .comment \
78+
--adjust-vma=${ADJUST_VMA} \
79+
sh-stub sh-stub.elf
80+
81+
sh-stub.hex: sh-stub
82+
$(OBJCOPY) -S -R .data -R .stack -R .bss -R .comment \
83+
--adjust-vma=${ADJUST_VMA} -O ihex \
84+
sh-stub sh-stub.hex
85+
86+
87+
sh-stub.src: sh-stub
88+
$(OBJCOPY) -S -R .stack -R .bss -R .comment \
89+
--adjust-vma=${ADJUST_VMA} -O srec \
90+
sh-stub sh-stub.src
91+
92+
93+
sh-stub: sh-stub.o entry.o ${MACHINE_DEPENDS} sh-sci.o setjmp.o string.o sh-stub.lds
94+
$(LD) $(LINKFLAGS) entry.o sh-stub.o ${MACHINE_DEPENDS} sh-sci.o \
95+
setjmp.o string.o \
96+
-o sh-stub
97+
98+
99+
sh-stub.lds: sh-stub.lds.S
100+
$(CC) -E -C -P -I. sh-stub.lds.S >sh-stub.lds
101+
102+
clean:
103+
rm -rf sh-stub sh-stub.bin sh-stub.elf *.o sh-stub.lds \
104+
sh-stub.src sh-stub.bin sh-stub.hex sh-stu.elf
105+
106+
107+
108+
109+
110+
111+
112+

0 commit comments

Comments
 (0)