首页 > 代码库 > red——hat

red——hat

arm-linux-gcc -static -o lcd_show lcd_show.c

sudo mount -o loop initrd.img XXX (XXX -- your mount directory)

sudo cp lcd_show XXX/bin/

sudo umount XXX

skyeye -e vmlinux

xuqiang@ubuntu:~/Embedded/s3c2410x-2.6.14$ skyeye -e vmlinux

 

# dd if=/dev/zero of=initrd.img bs=4k count=1024
# mkfs.ext2 -F –m 0 initrd.img
# sudo mkdir /mnt/ramdisk
# mount -o loop initrd.img /mnt/ramdisk
# cp -r /opt/filesystem /mnt/ramdisk
# umount /mnt
# gzip -9 initrd.img

mkdir llvm
cd llvm
mkdir obj
mkdir install
wget http://llvm.org/releases/2.4/llvm-2.4.tar.gz
wget http://llvm.org/releases/2.4/llvm-gcc-4.2-2.4.source.tar.gz
tar -xzf llvm-2.4.tar.gz
tar -xzf llvm-gcc-4.2-2.4.source.tar.gz
cd llvm-2.4
./configure --prefix=`pwd`/../install
make
make install
cd ..
cd obj
../llvm-gcc4.2-2.4.source/configure --prefix=`pwd`/../install --program-prefix=llvm- --enable-llvm=`pwd`/../llvm-2.4 --enable-languages=c,c++ --disable-multilib
make
make install