e721a7c07e
TARGET_CONFIGURE_ENV defines CFLAGS, LDFLAGS, CXXFLAGS and FCFLAGS, separatly from all other variables that are part of TARGET_CONFIGURE_OPTS. This is useless and not consistent with the HOST_CONFIGURE_ variables, therefore we merge TARGET_CONFIGURE_ENV into TARGET_CONFIGURE_OPTS and fix the few users of TARGET_CONFIGURE_ENV. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
45 lines
1.6 KiB
Makefile
45 lines
1.6 KiB
Makefile
#############################################################
|
|
#
|
|
# lockfile-progs
|
|
#
|
|
#############################################################
|
|
LOCKFILE_PROGS_VERSION=0.1.11-0.1
|
|
LOCKFILE_PROGS_SOURCE:=lockfile-progs_$(LOCKFILE_PROGS_VERSION).tar.gz
|
|
LOCKFILE_PROGS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lockfile-progs/
|
|
LOCKFILE_PROGS_CAT:=$(ZCAT)
|
|
LOCKFILE_PROGS_DIR:=$(BUILD_DIR)/lockfile-progs-0.1.11
|
|
LOCKFILE_PROGS_BINARY:=usr/bin/lockfile-create
|
|
|
|
$(DL_DIR)/$(LOCKFILE_PROGS_SOURCE):
|
|
$(call DOWNLOAD,$(LOCKFILE_PROGS_SITE),$(LOCKFILE_PROGS_SOURCE))
|
|
|
|
lockfile-progs-source: $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE)
|
|
|
|
$(LOCKFILE_PROGS_DIR)/.unpacked: $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE)
|
|
$(LOCKFILE_PROGS_CAT) $(DL_DIR)/$(LOCKFILE_PROGS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
toolchain/patch-kernel.sh $(LOCKFILE_PROGS_DIR) package/lockfile-progs/ \*.patch
|
|
touch $(LOCKFILE_PROGS_DIR)/.unpacked
|
|
|
|
$(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY): $(LOCKFILE_PROGS_DIR)/.unpacked
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LOCKFILE_PROGS_DIR)
|
|
cp -a $(LOCKFILE_PROGS_DIR)/bin/lockfile* $(TARGET_DIR)/usr/bin
|
|
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY)
|
|
|
|
lockfile-progs: liblockfile $(TARGET_DIR)/$(LOCKFILE_PROGS_BINARY)
|
|
|
|
lockfile-progs-clean:
|
|
-rm -f $(TARGET_DIR)/usr/bin/lockfile-*
|
|
-$(MAKE) -C $(LOCKFILE_PROGS_DIR) clean
|
|
|
|
lockfile-progs-dirclean:
|
|
rm -rf $(LOCKFILE_PROGS_DIR)
|
|
|
|
#############################################################
|
|
#
|
|
# Toplevel Makefile options
|
|
#
|
|
#############################################################
|
|
ifeq ($(BR2_PACKAGE_LOCKFILE_PROGS),y)
|
|
TARGETS+=lockfile-progs
|
|
endif
|