]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
bootstrap:mk introduce my-skel-root-{Nevis, Apollo, Kronos}
authorMarkham <markham001@gmx.de>
Sat, 21 Nov 2015 20:44:55 +0000 (21:44 +0100)
committerMarkham <markham001@gmx.de>
Sat, 21 Nov 2015 20:44:55 +0000 (21:44 +0100)
define it in config (optional)

.gitignore
doc/config.example
make/bootstrap.mk

index 9ff32447b7aff31894e8329ad4a92d265088f529..aee8de3c772a7e39b853c74811162b58af07b413 100644 (file)
@@ -14,6 +14,7 @@ local
 Makefile.local
 .ignore
 config
+my-skel-*
 *~
 /*.patch
 /*.diff
index 8cfcc958a56a7d250b00bc84f9697b0e1408ecbd..2856d6fb8375bfb4306e18c816e4eafd69b7965a 100755 (executable)
@@ -106,10 +106,11 @@ XUPNPD=no
 MULTIMEDIA=no
 
 ###########################################################################################
+### Customize
 ###########################################################################################
 
-
-
+#Choose your own SKEL_ROOT_DIR (optional), define SKEL_ROOT_DIR=path_to_my_skel-root-dir
+# SKEL_ROOT_DIR=
 
 
 ###########################################################################################
index fd7ffeeeab614af70f69eaea2052757932bc23a4..641ab105ffcd97c476e4dc4923d646eb92015c18 100755 (executable)
@@ -35,15 +35,28 @@ $(HOSTPREFIX)/bin/pkg-config: $(ARCHIVE)/pkg-config-$(PKGCONFIG_VER).tar.gz | $(
 
 skeleton: | $(TARGETPREFIX)
        if [ $(PLATFORM) = "apollo" ]; then \
-               cp --remove-destination -a skel-root-apollo/* $(TARGETPREFIX)/; \
-               touch $(TARGETPREFIX)/.$(PLATFORM); \
+               if [ -n $(SKEL_ROOT_DIR) ]; then \
+                       [ ! -e $(SKEL_ROOT_DIR) ] && ln -sf $(SKEL_ROOT_DIR) $(HOSTPREFIX)/my-skel-root-apollo; \
+                       cp --remove-destination -a my-skel-root-apollo/* $(TARGETPREFIX)/; \
+               else \
+                       cp --remove-destination -a skel-root-apollo/* $(TARGETPREFIX)/; \
+               fi \
        elif [ $(PLATFORM) = "kronos" ]; then \
-               cp --remove-destination -a skel-root-kronos/* $(TARGETPREFIX)/; \
-               touch $(TARGETPREFIX)/.$(PLATFORM); \
+               if [ -n $(SKEL_ROOT_DIR) ]; then \
+                       [ ! -e $(SKEL_ROOT_DIR) ] && ln -sf $(SKEL_ROOT_DIR) $(HOSTPREFIX)/my-skel-root-kronos; \
+                       cp --remove-destination -a my-skel-root-kronos/* $(TARGETPREFIX)/; \
+               else \
+                       cp --remove-destination -a skel-root-kronos/* $(TARGETPREFIX)/; \
+               fi \
        else \
-               cp --remove-destination -a skel-root-nevis/* $(TARGETPREFIX)/; \
-               touch $(TARGETPREFIX)/.$(PLATFORM); \
+               if [ -n $(SKEL_ROOT_DIR) ]; then \
+                       [ ! -e $(SKEL_ROOT_DIR) ] && ln -sf $(SKEL_ROOT_DIR) $(HOSTPREFIX)/my-skel-root-nevis; \
+                       cp --remove-destination -a my-skel-root-nevis/* $(TARGETPREFIX)/; \
+               else \
+                       cp --remove-destination -a skel-root-nevis/* $(TARGETPREFIX)/; \
+               fi \
        fi
+       touch $(TARGETPREFIX)/.$(PLATFORM)
 
 $(BUILD_TMP):
        mkdir -p $(BUILD_TMP)