include $(TOPDIR)/rules.mk include $(BUILD_DIR)/kernel.mk PKG_NAME:=cpu_monitor PKG_VERSION:=1 PKG_RELEASE:=1 PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME) include $(BUILD_DIR)/package.mk define Package/cpu_monitor SECTION:=utils CATEGORY:=Utilities TITLE:=cpu_monitor endef define Package/cpu_monitor/description monitor cpu load,freq and temp endef define Build/Prepare mkdir -p $(PKG_BUILD_DIR) $(CP) ./src $(PKG_BUILD_DIR)/ endef define Build/Configure endef define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR)/src \ MAKE="$(MAKE)" \ ARCH="$(TARGET_ARCH)" \ AR="$(TARGET_AR)" \ CC="$(TARGET_CC)" \ CXX="$(TARGET_CXX)" \ CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ CONFIG_PREFIX="$(PKG_INSTALL_DIR)" \ all endef define Package/cpu_monitor/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ endef $(eval $(call BuildPackage,cpu_monitor))