Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc75cc6b authored by John Kacur's avatar John Kacur Committed by Michal Marek
Browse files

tags: Add the ability to make tags for all archs using "all"



make ALLSOURCE_ARCHS=all tags
- Document this in kbuild.txt
Without this change you have to type each arch separately.

Signed-off-by: default avatarJohn Kacur <jkacur@redhat.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 4431d4ce
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -162,3 +162,7 @@ For tags/TAGS/cscope targets, you can specify more than one arch
to be included in the databases, separated by blank space. E.g.:
to be included in the databases, separated by blank space. E.g.:


    $ make ALLSOURCE_ARCHS="x86 mips arm" tags
    $ make ALLSOURCE_ARCHS="x86 mips arm" tags

To get all available archs you can also specify all. E.g.:

    $ make ALLSOURCE_ARCHS=all tags
+11 −0
Original line number Original line Diff line number Diff line
@@ -24,9 +24,20 @@ else
	tree=${srctree}/
	tree=${srctree}/
fi
fi


# Find all available archs
find_all_archs()
{
	ALLSOURCE_ARCHS=""
	for arch in `ls ${tree}arch`; do
		ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/}
	done
}

# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
# Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
if [ "${ALLSOURCE_ARCHS}" = "" ]; then
if [ "${ALLSOURCE_ARCHS}" = "" ]; then
	ALLSOURCE_ARCHS=${SRCARCH}
	ALLSOURCE_ARCHS=${SRCARCH}
elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then
	find_all_archs
fi
fi


# find sources in arch/$ARCH
# find sources in arch/$ARCH