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