
本文共 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���������������������������������
���������������������
mkdir yxpr_ipk
- ���yxpr_ipk���������������Makefile������������������������������
- ���src���������������������������yxpr_ipk.c���Makefile���������
- ".....has both : and :: entries. Stop." ������Makefile���������������������
- "Makefile missing separator. Stop." ���������������������TAB���������
include $(TOPDIR)/rules.mkPKG_NAME:=yxpr_ipkPKG_RELEASE:=1PKG_BUILD_DIR:= $(BUILD_DIR)/$(PKG_NAME)include $(INCLUDE_DIR)/package.mkdefine Package/yxpr_ipk SECTION:=utils CATEGORY:=Utilities TITLE:=Helloworld-- prints a snarky messageendefdefine Build/Prepare mkdir -p $(PKG_BUILD_DIR) $(CP) ./src/* $(PKG_BUILD_DIR)/endefdefine Package/yxpr_ipk/install $(INSTALL_DIR) $(1)/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/yxpr_ipk $(1)/bin/endef$(eval $(call BuildPackage,yxpr_ipk))
#includeint 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.# Instructions1. 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
���������������������������
���������������������������������������������������������
������������������/bin/������������������yxpr_ipk������������������
������������������������������������LEDE������������������������������������������������������������������������������������
发表评论
最新留言
关于作者
