|
@ -3,7 +3,7 @@ |
|
|
#
|
|
|
#
|
|
|
# -----------------------------------------------------------------------------
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
rootfs: .version update.urls $(ROOTFS) cleanup strip softlinks |
|
|
rootfs: .version update.urls $(ROOTFS) rootfs-cleanup rootfs-strip rootfs-softlinks |
|
|
|
|
|
|
|
|
.version: $(TARGET_DIR)/.version |
|
|
.version: $(TARGET_DIR)/.version |
|
|
$(TARGET_DIR)/.version: |
|
|
$(TARGET_DIR)/.version: |
|
@ -39,8 +39,8 @@ $(ROOTFS): | $(TARGET_DIR) |
|
|
rm -rf $(ROOTFS) |
|
|
rm -rf $(ROOTFS) |
|
|
cp -a $(TARGET_DIR) $(ROOTFS) |
|
|
cp -a $(TARGET_DIR) $(ROOTFS) |
|
|
|
|
|
|
|
|
# cleanup filesystem from useless stuff
|
|
|
# cleanup root filesystem from useless stuff
|
|
|
cleanup: $(ROOTFS) |
|
|
rootfs-cleanup: $(ROOTFS) |
|
|
rm -rf $(ROOTFS)/{include,mymodules} |
|
|
rm -rf $(ROOTFS)/{include,mymodules} |
|
|
rm -rf $(ROOTFS)/share/{aclocal,gdb,locale,man,doc,info,common-lisp} |
|
|
rm -rf $(ROOTFS)/share/{aclocal,gdb,locale,man,doc,info,common-lisp} |
|
|
rm -rf $(ROOTFS)/lib/pkgconfig |
|
|
rm -rf $(ROOTFS)/lib/pkgconfig |
|
@ -53,8 +53,8 @@ cleanup: $(ROOTFS) |
|
|
@du -sh $(ROOTFS) |
|
|
@du -sh $(ROOTFS) |
|
|
@echo -e "$(TERM_NORMAL)" |
|
|
@echo -e "$(TERM_NORMAL)" |
|
|
|
|
|
|
|
|
# strip bins and libs in filesystem
|
|
|
# strip bins and libs in root filesystem
|
|
|
strip: $(ROOTFS) |
|
|
rootfs-strip: $(ROOTFS) |
|
|
ifneq ($(DEBUG), yes) |
|
|
ifneq ($(DEBUG), yes) |
|
|
@make line |
|
|
@make line |
|
|
@echo "The following warnings from strip are harmless!" |
|
|
@echo "The following warnings from strip are harmless!" |
|
@ -76,8 +76,8 @@ ifneq ($(DEBUG), yes) |
|
|
@echo -e "$(TERM_NORMAL)" |
|
|
@echo -e "$(TERM_NORMAL)" |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
# create softlinks in filesystem
|
|
|
# create softlinks in root filesystem
|
|
|
softlinks: $(ROOTFS) |
|
|
rootfs-softlinks: $(ROOTFS) |
|
|
pushd $(ROOTFS) && \
|
|
|
pushd $(ROOTFS) && \
|
|
|
ln -sf /var/root root |
|
|
ln -sf /var/root root |
|
|
ifeq ($(BOXSERIES), hd51) |
|
|
ifeq ($(BOXSERIES), hd51) |
|
@ -169,7 +169,7 @@ PHONY += rootfs |
|
|
PHONY += .version $(TARGET_DIR)/.version |
|
|
PHONY += .version $(TARGET_DIR)/.version |
|
|
PHONY += update.urls $(TARGET_DIR)/var/etc/update.urls |
|
|
PHONY += update.urls $(TARGET_DIR)/var/etc/update.urls |
|
|
PHONY += $(ROOTFS) |
|
|
PHONY += $(ROOTFS) |
|
|
PHONY += cleanup |
|
|
PHONY += rootfs-cleanup |
|
|
PHONY += strip |
|
|
PHONY += rootfs-strip |
|
|
PHONY += softlinks |
|
|
PHONY += rootfs-softlinks |
|
|
PHONY += personalize |
|
|
PHONY += personalize |
|
|