Browse Source

- avoid unnecessary rebuilds

master
vanhofen 6 years ago
parent
commit
401174ac9e
  1. 12
      make/linux-kernel.mk
  2. 20
      make/neutrino-plugins.mk
  3. 3
      make/ni.mk

12
make/linux-kernel.mk

@ -112,7 +112,8 @@ $(D)/kernel-armbox: $(D)/kernel.do_compile
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
kernel-modules-coolstream: kernel-modules-coolstream-$(BOXSERIES) $(D)/kernel-modules-coolstream: $(D)/kernel-modules-coolstream-$(BOXSERIES)
$(TOUCH)
STRIP-MODULES-COOLSTREAM-HD1 = STRIP-MODULES-COOLSTREAM-HD1 =
STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/mtd/devices/mtdram.ko STRIP-MODULES-COOLSTREAM-HD1 += kernel/drivers/mtd/devices/mtdram.ko
@ -126,28 +127,31 @@ STRIP-MODULES-COOLSTREAM-HD1 += kernel/fs/autofs4/autofs4.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/fs/cifs/cifs.ko STRIP-MODULES-COOLSTREAM-HD1 += kernel/fs/cifs/cifs.ko
STRIP-MODULES-COOLSTREAM-HD1 += kernel/fs/fuse/fuse.ko STRIP-MODULES-COOLSTREAM-HD1 += kernel/fs/fuse/fuse.ko
kernel-modules-coolstream-hd1: kernel-coolstream $(D)/kernel-modules-coolstream-hd1: $(D)/kernel-coolstream
for module in $(STRIP-MODULES-COOLSTREAM-HD1); do \ for module in $(STRIP-MODULES-COOLSTREAM-HD1); do \
mkdir -p $(TARGET_MODULES_DIR)/$$(dirname "$$module"); \ mkdir -p $(TARGET_MODULES_DIR)/$$(dirname "$$module"); \
$(TARGET)-objcopy --strip-unneeded $(KERNEL_MODULES_DIR)/$$module $(TARGET_MODULES_DIR)/$$module; \ $(TARGET)-objcopy --strip-unneeded $(KERNEL_MODULES_DIR)/$$module $(TARGET_MODULES_DIR)/$$module; \
done; done;
rm -f $(TARGET_MODULES_DIR)/usb-storage.ko # already builtin rm -f $(TARGET_MODULES_DIR)/usb-storage.ko # already builtin
make depmod make depmod
$(TOUCH)
kernel-modules-coolstream-hd2: kernel-coolstream $(D)/kernel-modules-coolstream-hd2: $(D)/kernel-coolstream
rm -rf $(TARGET_MODULES_DIR)/kernel # nuke coolstream kernel-drivers but leave coolstream extra-drivers rm -rf $(TARGET_MODULES_DIR)/kernel # nuke coolstream kernel-drivers but leave coolstream extra-drivers
cp -a $(KERNEL_MODULES_DIR)/kernel $(TARGET_MODULES_DIR) # copy own kernel-drivers cp -a $(KERNEL_MODULES_DIR)/kernel $(TARGET_MODULES_DIR) # copy own kernel-drivers
cp -a $(KERNEL_MODULES_DIR)/modules.builtin $(TARGET_MODULES_DIR) cp -a $(KERNEL_MODULES_DIR)/modules.builtin $(TARGET_MODULES_DIR)
cp -a $(KERNEL_MODULES_DIR)/modules.order $(TARGET_MODULES_DIR) cp -a $(KERNEL_MODULES_DIR)/modules.order $(TARGET_MODULES_DIR)
make depmod make depmod
make rtl8192eu make rtl8192eu
$(TOUCH)
kernel-modules-armbox: kernel-armbox $(D)/kernel-modules-armbox: $(D)/kernel-armbox
cp -a $(KERNEL_MODULES_DIR)/kernel $(TARGET_MODULES_DIR) cp -a $(KERNEL_MODULES_DIR)/kernel $(TARGET_MODULES_DIR)
cp -a $(KERNEL_MODULES_DIR)/modules.builtin $(TARGET_MODULES_DIR) cp -a $(KERNEL_MODULES_DIR)/modules.builtin $(TARGET_MODULES_DIR)
cp -a $(KERNEL_MODULES_DIR)/modules.order $(TARGET_MODULES_DIR) cp -a $(KERNEL_MODULES_DIR)/modules.order $(TARGET_MODULES_DIR)
make depmod make depmod
make rtl8192eu make rtl8192eu
$(TOUCH)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

20
make/neutrino-plugins.mk

@ -3,16 +3,19 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
plugins-all: $(D)/neutrino $(D)/neutrino-plugins \ plugins: \
logo-addon \ $(D)/neutrino-plugins \
neutrino-mediathek \ $(D)/logo-addon \
doscam-webif-skin $(D)/neutrino-mediathek \
$(D)/doscam-webif-skin
make plugins-$(BOXSERIES)
plugins-hd1: # nothing to do plugins-hd1:
# nothing to do
plugins-hd2 \ plugins-hd2 \
plugins-hd51: \ plugins-hd51: \
channellogos $(D)/channellogos
ifneq ($(BOXMODEL), kronos_v2) ifneq ($(BOXMODEL), kronos_v2)
make links make links
endif endif
@ -65,7 +68,7 @@ $(NP_OBJ_DIR)/config.status: $(NP_DEPS)
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
$(D)/neutrino-plugins: $(NP_OBJ_DIR)/config.status $(D)/neutrino-plugins: $(D)/neutrino $(NP_OBJ_DIR)/config.status
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \ PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
$(MAKE) -C $(NP_OBJ_DIR) all DESTDIR=$(TARGET_DIR) $(MAKE) -C $(NP_OBJ_DIR) all DESTDIR=$(TARGET_DIR)
$(MAKE) -C $(NP_OBJ_DIR) install DESTDIR=$(TARGET_DIR) $(MAKE) -C $(NP_OBJ_DIR) install DESTDIR=$(TARGET_DIR)
@ -180,10 +183,11 @@ $(D)/links: $(D)/libpng $(D)/libjpeg $(D)/openssl $(ARCHIVE)/links-$(LINKS_VER).
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
PHONY += plugins-all PHONY += plugins
PHONY += plugins-hd1 PHONY += plugins-hd1
PHONY += plugins-hd2 PHONY += plugins-hd2
PHONY += plugins-hd51 PHONY += plugins-hd51
PHONY += neutrino-plugins-uninstall neutrino-plugins-distclean PHONY += neutrino-plugins-uninstall neutrino-plugins-distclean
PHONY += neutrino-plugins-clean neutrino-plugins-clean-all PHONY += neutrino-plugins-clean neutrino-plugins-clean-all
PHONY += neutrino-plugin-% PHONY += neutrino-plugin-%

3
make/ni.mk

@ -23,8 +23,7 @@ ni-image:
@echo "starting 'make $@' build with "$(PARALLEL_JOBS)" threads!" @echo "starting 'make $@' build with "$(PARALLEL_JOBS)" threads!"
$(MAKE) kernel-modules-$(BOXTYPE) $(MAKE) kernel-modules-$(BOXTYPE)
$(MAKE) neutrino $(MAKE) neutrino
make plugins-all $(MAKE) plugins
make plugins-$(BOXSERIES)
make fbshot make fbshot
$(MAKE) lcd4linux $(MAKE) lcd4linux
$(MAKE) luacurl $(MAKE) luacurl

Loading…
Cancel
Save