Message ID | 1413477888-58099-1-git-send-email-matthew.weber@rockwellcollins.com |
---|---|
State | Superseded |
Headers | show |
Dear Matt Weber, On Thu, 16 Oct 2014 11:44:47 -0500, Matt Weber wrote: > diff --git a/package/pps-tools/pps-tools.mk b/package/pps-tools/pps-tools.mk > new file mode 100644 > index 0000000..a77869a > --- /dev/null > +++ b/package/pps-tools/pps-tools.mk > @@ -0,0 +1,27 @@ > +################################################################################ > +# > +# pps-tools > +# > +################################################################################ > + > +PPS_TOOLS_VERSION = 0deb9c7e135e9380a6d09e9d2e938a146bb698c8 > +PPS_TOOLS_SITE = $(call github,ago,pps-tools,$(PPS_TOOLS_VERSION)) > +PPS_TOOLS_INSTALL_STAGING = YES > +PPS_TOOLS_LICENSE = GPLv2+ > +PPS_TOOLS_LICENSE_FILES = COPYING > + > +define PPS_TOOLS_BUILD_CMDS > + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all We more commonly pass $(TARGET_CONFIGURE_OPTS) on the right hand side of $(MAKE), and pass $(TARGET_MAKE_ENV) in the environment, i.e on the left hand-side of $(MAKE). > +endef > + > +define PPS_TOOLS_INSTALL_STAGING_CMDS > + mkdir -p $(STAGING_DIR)/usr/include/sys $(STAGING_DIR)/usr/bin > + $(MAKE) DESTDIR=$(STAGING_DIR) -C $(@D) install Not using $(TARGET_CONFIGURE_OPTS) here but you're using it in the target installation command. Either it's needed or not, but it should be the same for both cases. Using $(TARGET_MAKE_ENV) is also recommended. Sorry I forgot to spot this in my earlier review. Thomas
diff --git a/package/Config.in b/package/Config.in index 93e148d..8c109a5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -351,6 +351,7 @@ endif source "package/parted/Config.in" source "package/pciutils/Config.in" source "package/picocom/Config.in" + source "package/pps-tools/Config.in" source "package/pifmrds/Config.in" source "package/read-edid/Config.in" source "package/rng-tools/Config.in" diff --git a/package/pps-tools/Config.in b/package/pps-tools/Config.in new file mode 100644 index 0000000..83308f4 --- /dev/null +++ b/package/pps-tools/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PPS_TOOLS + bool "pps-tools" + help + Pulse per second tools. Provides timepps.h and other PPS utilities. + + https://github.com/ago/pps-tools/ diff --git a/package/pps-tools/pps-tools.mk b/package/pps-tools/pps-tools.mk new file mode 100644 index 0000000..a77869a --- /dev/null +++ b/package/pps-tools/pps-tools.mk @@ -0,0 +1,27 @@ +################################################################################ +# +# pps-tools +# +################################################################################ + +PPS_TOOLS_VERSION = 0deb9c7e135e9380a6d09e9d2e938a146bb698c8 +PPS_TOOLS_SITE = $(call github,ago,pps-tools,$(PPS_TOOLS_VERSION)) +PPS_TOOLS_INSTALL_STAGING = YES +PPS_TOOLS_LICENSE = GPLv2+ +PPS_TOOLS_LICENSE_FILES = COPYING + +define PPS_TOOLS_BUILD_CMDS + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) all +endef + +define PPS_TOOLS_INSTALL_STAGING_CMDS + mkdir -p $(STAGING_DIR)/usr/include/sys $(STAGING_DIR)/usr/bin + $(MAKE) DESTDIR=$(STAGING_DIR) -C $(@D) install +endef + +define PPS_TOOLS_INSTALL_TARGET_CMDS + mkdir -p $(TARGET_DIR)/usr/include/sys $(TARGET_DIR)/usr/bin + $(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install +endef + +$(eval $(generic-package))