[PATCH v1] mmc-utils: makefile: cross compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[PATCH v1] mmc-utils: makefile: cross compile

From: Zhan Liu <liuzhanjobs@xxxxxxxxx>

Problem and my changes

Current makefile can only compile for local gcc (x86). Add cross
compile so we can easily compile for other platform by doing “make
CROSS_GCC=/path/to/your/cross/compiler” .



---

Signed-off-by:  Zhan Liu <liuzhanjobs@xxxxxxxxx?


diff --cc Makefile
index a890833,efb2ec8..0000000
--- a/Makefile
+++ b/Makefile
@@@ -1,4 -1,5 +1,4 @@@
- CC ?= gcc
+ CC = $(CROSS_GCC)gcc
 -
  GIT_VERSION := "$(shell git describe --abbrev=6 --always --tags)"
  AM_CFLAGS = -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 \
            -DVERSION=\"$(GIT_VERSION)\"





[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux