"-application.endef# Package preparation instructions; create the build directory and copy the source code.# The last command is necessary to ensure our preparation instructions remain compatible# with the patching system.defineBuild/Prepare mkdir -p$(PKG_BUILD_DIR)cp$(SOURCE_DIR)/*$(PKG_BUILD_D...
make package/example/prepare- extract the sources, apply patches and downloadifnecessary make package/example/compile- compile example, prepare and downloadifnecessary make package/example/clean-clean the sourcecode make package/index- build a repository index to make the output directory usableaslocal ...
DESCRIPTION variable abovedefine Package/helloworld/description If you can't figure out what this program does, you're probably brain-dead and need immediate medical attention.endef # Specify what needs to be done to prepare for building the package.# In our case, we need to copy the source...
准备编译环境,准备一个用于编译插件的根目录(我的环境中目录名是~/openwrt_plugins),在此目录下,下载OpenWrt工程到一个名为source的目录,并切换到最新的稳定版分支。 git clone https://github.com/openwrt/openwrt.git source cd source git branch -a git tag git checkout v23.05.0 下载软件包 运行./sc...
URL:=http://bridge.sourceforge.net/ endef define Build/Configure $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR)) endef define Package/bridge/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/brctl/brctl $(1)/usr/sbin/ ...
# Specify what needs to be done to prepare for building the package.# In our case, we need to copy the source files to the build directory. # This is NOT the default. The default uses the PKG_SOURCE_URL and the # PKG_SOURCE which is not defined here to download the source from th...
/home/wooya/work/openwrt/openmptcprouter/myplatform/source/include/toplevel.mk:83: recipe for target 'prepare-tmpinfo' failed make: *** [prepare-tmpinfo] Error 2 Cannot open './tmp/.packageinfo': No such file or directory Can't open file './tmp/.targetinfo': No such file or direct...
# Specifywhat needs to be done to prepare for building the package. # In ourcase, we need to copy the source files to the build directory. # This isNOT the default. The default uses thePKG_SOURCE_URL and the #PKG_SOURCE which is not defined here to download the source from the web...
It's better to completely re-create your builder. This means no previous cache is used, and all source code will be updated (if no version specified). This behaves the same as a first-time building. You can set therebuildbuilding option to achieve this. For usage of building options, re...
prepare for building the package.# In our case, we need to copy the source files to the build directory.# This is NOT the default. The default uses the PKG_SOURCE_URL and the# PKG_SOURCE which is not defined here to download the source from the web.# In order to just build a ...