stm32 uclinux

作者在 2015-07-14 12:30:36 发布以下内容

su

apt-get install eclipse-cdt

apt-get install genromfs

apt-get install libncurses5-dev

apt-get install git

apt-get install mc

mc

uclinux

ctrl+O

.ACTIVE.sh

ctrl+O

make

 

#include

int main()

{

    printf("hell world");

    return 0;

 

CC - $ (CROSS_COMPLINE)gcc

LDFLAGW ?= $(CFLAGS)

target_out ?= out

all: checkdirs

    $(CC) $(LDFLAGS)/src/hello/

hell.c -o $(target_out)/bin/

hello $(LDLIBS)

    rm -rf $(target_out)/bin/*.gdb

checkdirs:

    mkdir -p $(target_out)/bin

    clean:

rm -rf $(target_out)

}

 

cd /usr

make all

./out/bin/hello

 vim mk/rootf.mak

user_hello:

    make -C $(user_dir)

    CROSS_COMPLINE =$(CROSS_COMPLINE) CFLAGS =(ROOTFS_CFLAGS)

    target_out = $(target_out_user)

    $(rootfs_target):$(rootfs_dir)

    $(target_out_busybox)/.config

 

user_hell0

 

默认分类 | 阅读 4950 次
文章评论,共0条
游客请输入验证码
浏览109827次
文章分类