Sfoglia il codice sorgente

Add info-target to print out some OpenADK variables in machine readable ways

dir 7 anni fa
parent
commit
a3f229e318
3 ha cambiato i file con 14 aggiunte e 1 eliminazioni
  1. 1 1
      Makefile
  2. 4 0
      Makefile.adk
  3. 9 0
      mk/build.mk

+ 1 - 1
Makefile

@@ -4,5 +4,5 @@
 # GNU make and BSD make compatible make file wrapper
 MAKECMDGOALS+= ${.TARGETS}
 
-all v allmodconfig allnoconfig allyesconfig help pkg-help dev-help targethelp kernelconfig savekconfig image menuconfig defconfig oldconfig download clean cleankernel cleansystem cleandir distclean hostclean hostpackage fetch package extract patch dep menu newpackage host-update-patches update-patches:
+all v allmodconfig allnoconfig allyesconfig help pkg-help dev-help targethelp kernelconfig savekconfig image menuconfig defconfig oldconfig download clean cleankernel cleansystem cleandir distclean hostclean hostpackage fetch package extract patch dep menu newpackage host-update-patches update-patches info:
 	@./scripts/prereq.sh ${MAKECMDGOALS}

+ 4 - 0
Makefile.adk

@@ -180,5 +180,9 @@ dep:
 world:
 	@${GMAKE_INV} world
 
+
+info:
+	@${GMAKE_INV} info
+
 endif
 # DO NOT DELETE

+ 9 - 0
mk/build.mk

@@ -652,3 +652,12 @@ check-g++: check-dejagnu
 	$(MAKE) -C $(TOOLCHAIN_BUILD_DIR)/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)/$(PKG_NAME)-$(PKG_VERSION)-final/gcc -k check-c++
 
 check: check-gcc check-g++
+
+info:
+	@printf -- "---OPENADK-INFO---\n"
+	@printf "ADK_TOPDIR=$(ADK_TOPDIR)\n"
+	@printf "TARGET_COMPILER_PREFIX=${TARGET_COMPILER_PREFIX}\n"
+	@printf "TOOLCHAIN_DIR=$(TOOLCHAIN_DIR)\n"
+	@printf "TARGET_PATH=$(TARGET_PATH)\n"
+	@printf "LINUX_DIR=$(LINUX_DIR)\n"
+	@printf -- "---OPENADK-INFO---\n"