Skip to content

Commit

Permalink
scripts: update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Oct 11, 2023
1 parent 953bb0d commit dfe537b
Show file tree
Hide file tree
Showing 18 changed files with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions trunk/user/scripts/Makefile
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
THISDIR = $(shell pwd)
all:
include $(ROOTDIR)/rules.mk

clean:
PKG_NAME:=scripts

include $(INCLUDE_DIR)/package.mk

define Build/Prepare
$(CP) ./files $(PKG_BUILD_DIR)/
mkdir -p $(PKG_BUILD_DIR)/files/usr/share/terminfo
tar -xzf ./terminfo.tar.gz -C $(PKG_BUILD_DIR)/files/usr/share
endef

define Build/Configure
endef

define Build/Compile
endef

$(eval $(call BuildPackage,scripts))

romfs:
fakeroot ./makedevlinks $(ROMFSDIR)
$(ROMFSINST) /sbin/dev_init.sh
$(ROMFSINST) /sbin/reset_ss.sh
$(ROMFSINST) /sbin/mtd_storage.sh
$(ROMFSINST) -p +x $(THISDIR)/copyscripts.sh /usr/bin/copyscripts.sh
$(ROMFSINST) -p +x $(THISDIR)/autostart.sh /usr/bin/autostart.sh
ifeq ($(STORAGE_ENABLED),y)
$(ROMFSINST) /sbin/automount.sh
$(CP) $(PKG_BUILD_DIR)/files/* $(ROMFSDIR)/
ifneq ($(STORAGE_ENABLED),y)
rm -f $(ROMFSDIR)/sbin/automount.sh
endif
ifdef CONFIG_BLK_DEV_SD
$(ROMFSINST) /sbin/hddtune.sh
$(ROMFSINST) /sbin/spindown.sh
ifndef CONFIG_BLK_DEV_SD
rm -f $(ROMFSDIR)/sbin/hddtune.sh
rm -f $(ROMFSDIR)/sbin/spindown.sh
endif
ifdef CONFIG_MTD_UBI
$(ROMFSINST) /sbin/rwfs2ubi.sh
ifndef CONFIG_MTD_UBI
rm -f $(ROMFSDIR)/sbin/rwfs2ubi.sh
endif
$(ROMFSINST) /etc_ro/protocols
$(ROMFSINST) /etc_ro/services
$(ROMFSINST) /etc_ro/profile
$(ROMFSINST) /etc_ro/shells
$(ROMFSINST) /etc_ro/mdev.conf
$(ROMFSINST) /etc_ro/banner
mkdir -p $(INSTALLDIR)/usr/share/terminfo
tar -xzf ./terminfo.tar.gz -C $(INSTALLDIR)/usr/share
$(ROMFSINST) /sbin/check_crontab.sh
$(ROMFSINST) $(THISDIR)/certs.tgz /etc_ro/certs.tgz
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dfe537b

Please sign in to comment.