<code id='vue5a'><strong id='vue5a'></strong></code>
  1. <tr id='vue5a'><strong id='vue5a'></strong><small id='vue5a'></small><button id='vue5a'></button><li id='vue5a'><noscript id='vue5a'><big id='vue5a'></big><dt id='vue5a'></dt></noscript></li></tr><ol id='vue5a'><table id='vue5a'><blockquote id='vue5a'><tbody id='vue5a'></tbody></blockquote></table></ol><u id='vue5a'></u><kbd id='vue5a'><kbd id='vue5a'></kbd></kbd>
  2. <fieldset id='vue5a'></fieldset><i id='vue5a'><div id='vue5a'><ins id='vue5a'></ins></div></i>
    <dl id='vue5a'></dl>

  3. <acronym id='vue5a'><em id='vue5a'></em><td id='vue5a'><div id='vue5a'></div></td></acronym><address id='vue5a'><big id='vue5a'><big id='vue5a'></big><legend id='vue5a'></legend></big></address>

    <i id='vue5a'></i>

    <span id='vue5a'></span>

      <ins id='vue5a'></ins>

        1. uClinux中添加用户应用程序的详细方法

          • 时间:
          • 浏览:1
          • 来源:124软件资讯网

            1. uClinux-dist/user/Makefile

            dir_$(CONFIG_USER_HELLO_WORLD)

            += hello


            2. uClinux-dist/config/Configure.help

            CONFIG_USER_HELLO_WORLD

            A simple hello world program


            3. uClinux-dist/config/config.in

            找到下面两行

            mainmenu_option next_comment

            comment 'Miscellaneous Applications'

            添加如下一行

            bool 'hello'

            CONFIG_USER_HELLO_WORLD


            4.1.uClinux-dist/user/hello/Makefile


            EXEC = hello
            OBJS = hello.o

            all: $(EXEC)

            $(EXEC): $(OBJS)
            $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)

            romfs:
            $(ROMFSINST) /bin/$(EXEC)

            clean:
            -rm -f $(EXEC) *.elf *.gdb *.o

            4.2.uClinux-dist/user/hello/hello.c

            #include

            int main()
            {
            printf("Hello, World\n");
            return 0;
            }

            5. 将用户法式编译进romfs


            # cd ~/uClinux-dist
            # make menuconfig
            # make dep
            # make romfs