Add 'advance-toolchain' to build stage area

This patch adds 'advance-toolchain' string to the build stage folder name. This
helps to easily and clearly identify which build is being generated on the
build stage.
Fixes sync memory barriers and endianess selection

This patch applies a better endianess selection control for the embedded
assembly code, as well as fixes the memory barrier instructions to guarantee
the proper storage sync on all active cores.