KERNEL_IMAGE = zImage
endif
-kernel: kernel-$(BOXTYPE) kernel-modules-$(BOXTYPE)
+kernel: $(D)/kernel-$(BOXTYPE) $(D)/kernel-modules-$(BOXTYPE)
$(D)/kernel-armbox: $(D)/kernel.do_compile
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd5x hd6x))
#endif
$(TOUCH)
-$(D)/kernel.do_compile: $(D)/kernel.do_prepare $(D)/host_mkimage
+$(D)/kernel.do_compile: $(D)/kernel.do_prepare
$(START_BUILD)
ifeq ($(BOXSERIES), $(filter $(BOXSERIES), hd5x hd6x))
set -e; cd $(BUILD_TMP)/$(KERNEL_DIR); \
endif
#KERNEL = $(D)/kernel
-$(D)/kernel-modules-armbox: kernel-armbox
+$(D)/kernel-modules-armbox: $(D)/kernel-armbox
install -d $(TARGET_modulesdir)
install -d $(TARGET_modulesdir)/extra
cp -a $(KERNEL_modulesdir)/kernel $(TARGET_modulesdir)
# try to package a complete root fs for the box target
-BOX = $(BUILD_TMP)/rootfs
-
$(D)/rootfs: $(D)/driver
$(START_BUILD)
- rm -rf $(BOX)
- cp -a $(TARGETPREFIX) $(BOX)
- mkdir -p $(BOX)/oldroot
- rm -rf $(BOX)/include $(BOX)/mymodules
- rm -rf $(BOX)/share/{aclocal,gdb,locale,doc} # locale not (yet) needed by anything
- rm -rf $(BOX)/lib/{pkgconfig,gettext}
- rm -f $(BOX)/lib/libvorbisenc*
- find $(BOX)/share/tuxbox/neutrino/locale/ -type f \
+ rm -rf $(ROOTFS_DIR)
+ cp -a $(TARGETPREFIX) $(ROOTFS_DIR)
+ mkdir -p $(ROOTFS_DIR)/oldroot
+ rm -rf $(ROOTFS_DIR)/include $(ROOTFS_DIR)/mymodules
+ rm -rf $(ROOTFS_DIR)/share/{aclocal,gdb,locale,doc} # locale not (yet) needed by anything
+ rm -rf $(ROOTFS_DIR)/lib/{pkgconfig,gettext}
+ rm -f $(ROOTFS_DIR)/lib/libvorbisenc*
+ find $(ROOTFS_DIR)/share/tuxbox/neutrino/locale/ -type f \
! -name deutsch.locale ! -name english.locale | xargs --no-run-if-empty rm
- find $(BOX) -name .gitignore -type f -print0 | xargs --no-run-if-empty -0 rm -f
- find $(BOX)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs --no-run-if-empty -0 rm -f
- du -sh $(BOX)
+ find $(ROOTFS_DIR) -name .gitignore -type f -print0 | xargs --no-run-if-empty -0 rm -f
+ find $(ROOTFS_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs --no-run-if-empty -0 rm -f
+ du -sh $(ROOTFS_DIR)
@echo ""
@echo " ****************************************************************************** "
@echo -e " \033[32m!!! The following warnings from strip are harmless !!!\033[0m "
@echo " ****************************************************************************** "
- find $(BOX)/bin -type f -print0 | xargs -0 $(TARGET)-strip || true
- find $(BOX)/sbin -type f -print0 | xargs -0 $(TARGET)-strip || true
- find $(BOX)/lib -path $(BOX)/lib/modules -prune -o -type f -print0 | xargs -0 $(TARGET)-strip || true
- find $(BOX)/var/bin -type f -print0 | xargs -0 $(TARGET)-strip 2>/dev/null || true
- find $(BOX)/var/sbin -type f -print0 | xargs -0 $(TARGET)-strip 2>/dev/null || true
- du -sh $(BOX)
+ find $(ROOTFS_DIR)/bin -type f -print0 | xargs -0 $(TARGET)-strip || true
+ find $(ROOTFS_DIR)/sbin -type f -print0 | xargs -0 $(TARGET)-strip || true
+ find $(ROOTFS_DIR)/lib -path $(ROOTFS_DIR)/lib/modules -prune -o -type f -print0 | xargs -0 $(TARGET)-strip || true
+ find $(ROOTFS_DIR)/var/bin -type f -print0 | xargs -0 $(TARGET)-strip 2>/dev/null || true
+ find $(ROOTFS_DIR)/var/sbin -type f -print0 | xargs -0 $(TARGET)-strip 2>/dev/null || true
+ du -sh $(ROOTFS_DIR)
if [ "$(BOXSERIES)" = hd2 ]; then \
$(MAKE) symlinks; \
fi
symlinks:
$(START_BUILD)
- pushd $(BOX)/lib; \
+ pushd $(ROOTFS_DIR)/lib; \
ln -sf libuClibc-$(UCLIBC_VER).so libcrypt.so.0; \
ln -sf libuClibc-$(UCLIBC_VER).so libdl.so.0; \
ln -sf libuClibc-$(UCLIBC_VER).so libpthread.so.0; \