2011년 11월 21일 월요일

RTEMS 빌드 명령어

compile PATH 경로 설정 



[rtems@localhost ~]$ export PATH=/opt/rtems-4.10/bin:$PATH
[rtems@localhost ~]$ $PATH
bash: /opt/rtems-4.10/bin:/usr/lib/qt-3.3/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/rtems/bin: No such file or directory

테스트용 폴더를 생성

[rtems@localhost rtems-4.10-work]$ mkdir test-build-rtems
[rtems@localhost rtems-4.10-work]$ ls
bsp-install  examples-v2    rtems          setenv
build_bsp    network-demos  rtems-testing  test-build-rtems


[rtems@localhost rtems-4.10-work]$ cd test-build-rtems/
[rtems@localhost test-build-rtems]$ ls
[rtems@localhost test-build-rtems]$ ../rtems/configure --target=i386-rtems4.10 \
> --enable-networking --disable-cxx --enable-rtemsbsp="pc386" \
> --prefix=/home/rtems/rtems-4.10-work/test-build-rtems/

.................................중략..........................................


configure: creating ./config.status
config.status: creating Makefile

target architecture: i386.
available BSPs: pc386.
'gmake all' will build the following BSPs: pc386.
other BSPs can be built with 'gmake RTEMS_BSP="bsp1 bsp2 ..."'

config.status: creating Makefile
config.status: creating make/Makefile

[rtems@localhost test-build-rtems]$ make install

[rtems@localhost pc386]$ export RTEMS_MAKEFILE_PATH=/home/rtems/rtems-4.10-work/test-build-rtems/i386-rtems4.10/pc386/

[rtems@localhost rtems-4.10-work]$ $RTEMS_MAKEFILE_PATH
bash: /home/rtems/rtems-4.10-work/test-build-rtems/i386-rtems4.10/pc386/: is a directory

--------------------------------------------------------------------------------------------------------------------------------------------------------------------


[rtems@localhost rtems-4.10-work]$ cd b-test/
[rtems@localhost b-test]$ ls
[rtems@localhost b-test]$ ../rtems/configure -target=i386-rtems4.10 \
> --enable-networking --enable-multiprocessing --disable-cxx \
> --enable-rtemsbsp="pc386" --prefix=/home/rtems/rtems-4.10-work/b-test/

[rtems@localhost b-test]$ make all

댓글 없음:

댓글 쓰기