嵌入式linux系统的开发——SDK环境的应用
发布日期:2021-05-10 14:32:59 浏览次数:19 分类:精选文章

本文共 3080 字,大约阅读时间需要 10 分钟。

������

SDK������������������������Software Development Kit���������������������������������������������������������������������������������������Linux���������LEDE���������SDK���������������������������������������SDK���������������������������������������������������������������������Linux���������������������������������������������������������������������������������������LEDE���SDK���������������������������������������������������������������������������IPK���������������������������


SDK������������

���LEDE������������������������������������������LEDE���������������

make menuconfig

������������������������ Build the LEDE SDK ���������������������������������SDK���������������������������������������

/source-17.01.4/bin/targets/ramips/mt7628

������������������������SDK������������

lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.16.Linux-i686.tar.xz

���������������������������������������������/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.16���������������������������������


���������������������

  • ���SDK������������������package���������������������������������������������yxpr_ipk���
  • mkdir yxpr_ipk
    1. ���yxpr_ipk���������������Makefile������������������������������
    2. include $(TOPDIR)/rules.mk
      PKG_NAME:=yxpr_ipk
      PKG_RELEASE:=1
      PKG_BUILD_DIR:= $(BUILD_DIR)/$(PKG_NAME)
      include $(INCLUDE_DIR)/package.mk
      define Package/yxpr_ipk
      SECTION:=utils
      CATEGORY:=Utilities
      TITLE:=Helloworld-- prints a snarky message
      endef
      define Build/Prepare
      mkdir -p $(PKG_BUILD_DIR)
      $(CP) ./src/* $(PKG_BUILD_DIR)/
      endef
      define Package/yxpr_ipk/install
      $(INSTALL_DIR) $(1)/bin
      $(INSTALL_BIN) $(PKG_BUILD_DIR)/yxpr_ipk $(1)/bin/
      endef
      $(eval $(call BuildPackage,yxpr_ipk))
      1. ���src���������������������������yxpr_ipk.c���Makefile���������
      2. #include 
        int main(void) {
        printf("this is make ipk and executable file test \n");
        return 0;
        }
        #(serial number 1)
        Object-based compile. The printf statement in the C source file generates a binary file that can be directly executed. After making, you will find the executable file in the build directory.
        # Instructions
        1. Edit the Makefile file ensure all commands are without leading tabs

        ���������������

        ���������������������������IPK������������������������������������������������

        /ramips/mt7628/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.16.Linux-i686/bin/packages/mipsel_24kc/base/

        ���

        /lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.16.Linux-i686/build_dir/target-mipsel_24kc_musl-1.1.16/yxpr_ipk/

        ������WinSCP���IPK������������������������������������������������������������������������������

        chmod +x yxpr_ipk

        ���������������

        ./yxpr_ipk

        ������������������������opkg list���������������������������


        ���������������������������������������������������������

        • ".....has both : and :: entries. Stop." ������Makefile���������������������
        • "Makefile missing separator. Stop." ���������������������TAB���������

        ������������������/bin/������������������yxpr_ipk������������������


        ������������������������������������LEDE������������������������������������������������������������������������������������

    上一篇:Python中扩展C语言加快执行速度的实现方法
    下一篇:Linux平台上部署Mongoose服务器的方法介绍

    发表评论

    最新留言

    表示我来过!
    [***.240.166.169]2025年04月07日 21时37分00秒