All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] package management
@ 2011-05-14  2:14 Xianghua Xiao
  2011-05-14  9:53 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Xianghua Xiao @ 2011-05-14  2:14 UTC (permalink / raw)
  To: buildroot

will buildroot have opkg sometime soon?
thanks,
xianghua

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [Buildroot] Package Management
@ 2012-11-27 18:25 John Tobias
  0 siblings, 0 replies; 8+ messages in thread
From: John Tobias @ 2012-11-27 18:25 UTC (permalink / raw)
  To: buildroot

Hello all,

My package management support is working in generic-package,
pkg-autotools, pkg-cmake. By default, if you compile any libraries, it
will create a package file (.pkg) with or without modifying the .mk
file of the library, except for generic-package. I will provide a
patch file sometimes next week if you guys are interested to try it...

Right now, if I compile the busybox for example, I have to add the
function BUSYBOX_CREATE_PACKAGE_CMDS definition in the .mk file of the
busybox.

define BUSYBOX_CREATE_PACKAGE_CMDS

endif


So, in my pkg-generic.mk I added the following:

# Create package
$(BUILD_DIR)/%/.stamp_create_package:
@$(call MESSAGE,"Creating package")
$($(PKG)_CREATE_PACKAGE_CMDS)
$(foreach hook,$($(PKG)_POST_CREATE_PACKAGE_HOOKS),$(call $(hook))$(sep))
$(Q)touch $@


I need to check if the $(PKG)_CREATE_PACKAGE_CMDS exist or not in the
current building library, so I did the following:

# Create package
$(BUILD_DIR)/%/.stamp_create_package:
ifdef $(PKG)_CREATE_PACKAGE_CMDS
@$(call MESSAGE,"Creating package")
$($(PKG)_CREATE_PACKAGE_CMDS)
$(foreach hook,$($(PKG)_POST_CREATE_PACKAGE_HOOKS),$(call $(hook))$(sep))
endif
$(Q)touch $@


But, calling "ifdef $(PKG)_CREATE_PACKAGE_CMDS" to filter if the said
function is exist or not.

So my question is, how to check if the $(PKG)_CREATE_PACKAGE_CMDS is
exist or not?.

Regards,

john

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-27 18:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-14  2:14 [Buildroot] package management Xianghua Xiao
2011-05-14  9:53 ` Thomas Petazzoni
2011-05-14 13:49   ` Grant Edwards
2011-05-14 15:26     ` Thomas Petazzoni
2011-05-14 17:35       ` Grant Edwards
2011-05-14 21:31       ` Xianghua Xiao
2011-05-16  4:04         ` Grant Edwards
  -- strict thread matches above, loose matches on Subject: below --
2012-11-27 18:25 [Buildroot] Package Management John Tobias

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.