Changes between Version 11 and Version 12 of PortingYourApp
- Timestamp:
- Jun 14, 2010, 3:37:11 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PortingYourApp
v11 v12 7 7 Let's begin getting the source, and unpack it: 8 8 {{{ 9 #!sh 9 10 $ wget http://ftp.gnu.org/pub/gnu/bc/bc-1.06.tar.gz 10 11 $ tar xzvf bc-1.06.tar.gz … … 15 16 Now create another directory, and extract the meaningful sources 16 17 {{{ 18 #!sh 17 19 $ mkdir mutekh_port 18 20 $ cd mutekh_port … … 27 29 * `bc/Makefile` 28 30 {{{ 31 #!Makefile 29 32 objs = bc.o execute.o global.o load.o main.o scan.o storage.o util.o 30 33 … … 34 37 * `lib/Makefile` 35 38 {{{ 39 #!Makefile 36 40 objs = getopt.o getopt1.o number.o glue.o 37 41 … … 40 44 * `Makefile` 41 45 {{{ 46 #!Makefile 42 47 subdirs = bc lib 43 48 }}} … … 57 62 Add a `lib/glue.c` file: 58 63 {{{ 64 #!c 59 65 #include <hexo/types.h> 60 66 … … 83 89 Add a `signal.h` file: 84 90 {{{ 91 #!c 85 92 #define SIGINT 0 86 93 … … 93 100 Create a `sys` directory, and a `sys/types.h` file containing: 94 101 {{{ 102 #!c 95 103 #define isatty(x) 1 96 104 #define fileno(x) 0 … … 108 116 Let's create a `config.h` file 109 117 {{{ 118 #!c 110 119 #define HAVE_VPRINTF 111 120 #define STDC_HEADERS … … 157 166 158 167 {{{ 168 #!sh 159 169 user@host … mutekh $ make CONF=/path/to/my/ported/app/config BUILD=emu-darwin-x86 160 170 … … … 166 176 167 177 {{{ 178 #!sh 168 179 user@host … mutekh $ ./kernel-emu.out 169 180 MutekH is alive. … … 184 195 185 196 {{{ 197 #!sh 186 198 user@host … mutekh $ make CONF=/path/to/my/ported/app/config BUILD=pf-tutorial:soclib-mips32el 187 199 ... … … 193 205 194 206 {{{ 207 #!sh 195 208 user@host … caba-vgmn-mutekh_kernel_tutorial $ ./simulation.x mips32el:1 /path/to/mutekh/kernel-soclib-mips32el.out 196 209 }}}