summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk4
-rw-r--r--mk/image.mk2
-rw-r--r--mk/package.mk5
3 files changed, 7 insertions, 4 deletions
diff --git a/mk/build.mk b/mk/build.mk
index 1c8a33d3f..9ab3c83d6 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -126,6 +126,10 @@ POSTCONFIG= -@\
cleandir=1;\
rebuild=1;\
fi; \
+ if [ "$$(grep ^ADK_RUNTIME_INIT_ .config|md5sum)" != "$$(grep ^ADK_RUNTIME_BASE_ .config.old|md5sum)" ];then \
+ cleandir=1;\
+ rebuild=1;\
+ fi; \
if [ "$$(grep ^ADK_RUNTIME_BASE_ .config|md5sum)" != "$$(grep ^ADK_RUNTIME_BASE_ .config.old|md5sum)" ];then \
cleandir=1;\
rebuild=1;\
diff --git a/mk/image.mk b/mk/image.mk
index 272c21709..3485b43b6 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -78,8 +78,6 @@ ifeq ($(ADK_RUNTIME_INIT_SYSTEMD),y)
ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/halt
ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/poweroff
ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/reboot
- ln -fs ../../../lib/systemd/system/multi-user.target \
- $(TARGET_DIR)/etc/systemd/system/default.target
endif
test -z $(GIT) || \
$(GIT) log -1|head -1|sed -e 's#commit ##' \
diff --git a/mk/package.mk b/mk/package.mk
index 5510cf445..40a791616 100644
--- a/mk/package.mk
+++ b/mk/package.mk
@@ -229,9 +229,10 @@ ifneq (${ADK_INSTALL_PACKAGE_NETWORK_SCRIPTS},y)
endif
ifeq (${ADK_RUNTIME_INIT_SYSTEMD},y)
@for file in $$$$(ls ./files/*.service 2>/dev/null); do \
- mkdir -p $$(IDIR_$(1))/usr/lib/systemd/system && cp $$$$file $$(IDIR_$(1))/usr/lib/systemd/system; \
+ fname=$$$$(echo $$$$file| sed -e "s#.*/##"); \
+ mkdir -p $$(IDIR_$(1))/usr/lib/systemd/system && cp $$$$file $$(IDIR_$(1))/usr/lib/systemd/system/$$$$fname; \
mkdir -p $$(IDIR_$(1))/etc/systemd/system/multi-user.target.wants; \
- ln -sf ../../../../usr/lib/systemd/system/$$$$file \
+ ln -sf ../../../../usr/lib/systemd/system/$$$$fname \
$$(IDIR_$(1))/etc/systemd/system/multi-user.target.wants; \
done
endif