> Quoting [email protected]:
> 
>> On 29.02.2012 12:24, [email protected] wrote:
>>> In this case I am not sure what the best course of action is.
>>> What is the OpenWRT way to enable kernel options that aren't kernel modules?
>>
>> you can add a simple config var to your Makefile, like
>>  CONFIG_KERNEL_*=y
> 
> I couldn't find an example in the OpenWRT tree.
> If you know of one please point me in the right direction.
> 
> Are you suggesting something like the following?
> 
> include $(TOPDIR)/rules.mk
> 
> PKG_NAME:=parted
> PKG_VERSION:=2.4
> PKG_RELEASE:=1
> 
> PKG_BUILD_DIR:=$(BUILD_DIR)/parted-$(PKG_VERSION)
> PKG_SOURCE:=parted-$(PKG_VERSION).tar.gz
> PKG_SOURCE_URL:=@GNU/parted
> PKG_MD5SUM:=76a6457ea88447d79d50ca331069b19c
> PKG_CAT:=zcat
> CONFIG_KERNEL_EFI_PARTITION=y
> 
> include $(INCLUDE_DIR)/package.mk
> 
> define Package/parted
>         SECTION:=utils
>         CATEGORY:=Utilities
>         SUBMENU:=disc
>         DEFAULT:=n
>         TITLE:=GNU Parted manipulates partition tables
>         URL:=http://www.gnu.org/software/parted/
>         DEPENDS:= +libuuid +libreadline +libncurses
> endef
> 
> define Package/parted/description
>         GNU Parted manipulates partition tables. This is useful for creating
>         space for new operating systems, reorganizing disk usage, copying data
>         on hard disks and disk imaging. The package contains a library,
>         libparted, as well as well as a command-line frontend, parted,
>         which can also be used in scripts.
> endef
> 
> define Build/Configure
>         $(call Build/Configure/Default, \
>                 --enable-static \
>         )
> endef
> 
> define Package/parted/install
>         $(INSTALL_DIR) $(1)/usr/sbin
>         $(INSTALL_BIN) $(PKG_BUILD_DIR)/parted/parted $(1)/usr/sbin/
> endef
> 
> $(eval $(call BuildPackage,parted))
> 
> 
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> 
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
 

more along the lines of 

...

define Package/parted
         SECTION:=utils
         CATEGORY:=Utilities
         SUBMENU:=disc
         DEFAULT:=n
         TITLE:=GNU Parted manipulates partition tables
         URL:=http://www.gnu.org/software/parted/
         DEPENDS:= +libuuid +libreadline +libncurses
endef

# enable kernel module if package selected
ifdef CONFIG_PACKAGE_parted
  CONFIG_KERNEL_EFI_PARTITION:=y
endif

...


but adding a proper kernel module package wouldn't probably hurt either ..ede
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to