如何解决编译警告:跳过<>-执行OPKG编译时未选择软件包

时间:2020-10-31 06:43:46

标签: openwrt opkg

我是openWrt和OPKG的新手。

我正在尝试编译helloworld示例,但是当我执行命令时:

make package/helloworld/compile V=99

我遇到了以下错误:

WARNING: skipping libgfortran -- package not selected
WARNING: skipping ldd -- package not selected
WARNING: skipping ldconfig -- package not selected
make[2]: Leaving directory '/home/ubuntu/customer-test/lmu5541_sdk/openwrt/package/libs/toolchain'
make[2]: Entering directory '/home/ubuntu/customer-test/lmu5541_sdk/openwrt/package/helloworld'
WARNING: skipping helloworld -- package not selected
make[2]: Leaving directory '/home/ubuntu/customer-test/lmu5541_sdk/openwrt/package/helloworld'
make[1]: Leaving directory '/home/ubuntu/customer-test/lmu5541_sdk'

package / helloworld中仅在Makefile和src文件夹上方。软件包/问候语中的Makefile是:

include $(TOPDIR)/rules.mk

PKG_NAME:=helloworld
PKG_VERSION:=1.0.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/helloworld
    SECTION:=utils
    CATEGORY:=Utilities
    TITLE:=Helloworld Application
endef

CONFIGURE_VARS+= \
        CC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CC)"

define Package/helloworld/description
    Simple hello world package
endef

define Build/Prepare
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./src/* $(PKG_BUILD_DIR)/
endef


#define Build/Compile
#   $(call Build/Compile/Default)
#   $(TARGET_CC) $(HELLO_FLAGS) -o $(PKG_BUILD_DIR)/helloworld src/helloworld.c
#endef

define Package/helloworld/install
    $(INSTALL_DIR) $(1)/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/helloworld $(1)/bin/
endef

$(eval $(call BuildPackage,helloworld))

能否请您告诉我如何解决此问题?

0 个答案:

没有答案