]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/uio-test-pruss.git/blobdiff - Makefile
Merge pull request #1 in PROCESSOR-SDK/uio-test-pruss from add-k2g-support to master
[processor-sdk/uio-test-pruss.git] / Makefile
index eba5f02db51e0dbe10602760a1133acfccb99304..ca4bbd6c9e8a85e1d6ff0e0f4c65d2fd77d26763 100644 (file)
--- a/Makefile
+++ b/Makefile
 #*  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 #*  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #*
+
+DEFINES = -DPRUSS_V2\=0
+
 ifeq ($(DEVICE), am33xx)
 DEFINES = -DPRUSS_V2\=1
-else
+endif
+ifeq ($(DEVICE), am43xx)
+DEFINES = -DPRUSS_V2\=1
+endif
 ifeq ($(DEVICE), am57xx)
 DEFINES = -DPRUSS_V2\=1
-else
-DEFINES = -DPRUSS_V2\=0
 endif
+ifeq ($(DEVICE), k2g)
+DEFINES = -DPRUSS_V2\=1
 endif
 
 SOURCE=uio_test_pru.asm
@@ -51,7 +57,10 @@ all: uio_test_pru0.bin uio_test_pru1.bin
 uio_test_pru%.asm: $(SOURCE)
        cp $(SOURCE) $@
 
-uio_test_pru%.obj: uio_test_pru%.asm
+uio_test_pru0.obj: uio_test_pru0.asm
+       $(CGT_PRU)/bin/clpru $< $(DEFINES) -DCORE_PRU\=0
+
+uio_test_pru1.obj: uio_test_pru1.asm
        $(CGT_PRU)/bin/clpru $< $(DEFINES) -DCORE_PRU\=1
 
 uio_test_pru%.out: uio_test_pru%.obj