查看Buildroot Quick Start的源代码
←
Buildroot Quick Start
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Overview == 目录结构: <source lang=bash> comcat@jackslab:~/f1c/buildroot-2020.11.2$ ls arch board boot CHANGES Config.in Config.in.legacy configs COPYING DEVELOPERS dl docs fs linux Makefile Makefile.legacy output package README support system toolchain utils </source> <br> == 准备代码 == <source lang=bash> $ mkdir ~/helloworld_src </source> 放入 helloworld.c Makefile: '''helloworld.c:''' <source lang=cpp> #include <stdio.h> #include <unistd.h> int main(int argc, int *argv[]) { while(1) { printf("Hello world\n"); sleep(1); } return 0; } </source> '''Makefile:''' <source lang=makefile> OBJS=helloworld.o all: helloworld helloworld: $(OBJS) $(CC) $(LDFLAGS) -o helloworld $(OBJS) $(OBJS): %.o: %.c $(CC) $(CFLAGS) -c -o $@ $< </source> <br>
返回到
Buildroot Quick Start
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面