179
|
1 These files are extra utility type scripts that can be used for various
|
|
2 purposes.
|
|
3
|
|
4 as
|
|
5
|
|
6 This is a sort of front-end script that makes lwasm look approximately like
|
|
7 gnu as which is useful for using lwasm as a backend to gcc. You will
|
|
8 probably need to edit it to make it work fully. Simply put this in place
|
|
9 of whatever gcc6809 installed for "as" (in the "m6809/bin" folder in
|
|
10 "--prefix") after editing it to point to the real location of the "lwasm"
|
|
11 binary.
|
|
12
|
|
13
|
|
14 ld
|
|
15
|
|
16 Similar to the "as" script above except for lwlink.
|
|
17
|
|
18
|
|
19 ar
|
|
20
|
|
21 Similar to the "as" script above except for lwar.
|
|
22
|
208
|
23
|
|
24 To use these scripts, you really need to understand how to build a gcc as a
|
|
25 cross compiler. The basics are that you put the as, ld, and ar scripts
|
|
26 whereever you plan to put your cross-development binaries. Then, when
|
|
27 building the cross compiler, you tell it where the scripts are.
|
|
28
|
|
29 You should probably name them m6809-unknown-none-{ar,as,ld} or similar
|
249
|
30 depending on your gcc build target. You will probably need to ensure that
|
|
31 the m6809-* binaries are in your execution path. Then you'll want to get
|
|
32 the gcc6809 patch and patch the correct gcc source code. Then use a
|
|
33 configure line similar to the following:
|
208
|
34
|
|
35 configure --enable-languages=c --target=m6809-coco
|
|
36 --program-prefix=m6809-coco-lwos- --enable-obsolete
|
|
37 --srcdir=/home/lost/gcc6809/src/gcc-4.3.3 --disable-threads --disable-nls
|
|
38 --disable-libssp --prefix=/usr/local/coco --with-as=/usr/local/coco/bin/as
|
|
39 --with-ld=/usr/local/coco/bin/ld --with-sysroot=/usr/local/coco
|
|
40
|
|
41 Obviously adjust various paths to match what you're doing.
|
|
42
|
|
43 The exact mechanics of configuring and getting gcc to install correctly is
|
|
44 left as an exercise to the dedicated masochist.
|