From c2ebc9e4773c89847165f4ca877e4448604ddfd5 Mon Sep 17 00:00:00 2001 From: Rong Chang Date: Mon, 17 Aug 2015 20:09:38 +0800 Subject: oak: use EXTRA_CLFAGS instead of CONFIG_BOARD_OAK_REV Oak board revisions are not global configs. Move them out of include/config.h . This change also makes it easier to build EC and PD image for different board revisions. BRANCH=none BUG=none TEST=manual build for board revision n and load on oak: make BOARD=oak clean make BOARD=oak_pd claen make EXTRA_CFLAGS=-DBOARD_REV=n BOARD=oak -j make EXTRA_CFLAGS=-DBOARD_REV=n BOARD=oak_pd -j Change-Id: I331b4c5a1af94b179d7c6f7878a9c3939ea6025a Signed-off-by: Rong Chang Reviewed-on: https://chromium-review.googlesource.com/294441 Reviewed-by: Shawn N --- board/oak_pd/gpio.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/oak_pd/gpio.inc') diff --git a/board/oak_pd/gpio.inc b/board/oak_pd/gpio.inc index e5d0c67924..228c37bea3 100644 --- a/board/oak_pd/gpio.inc +++ b/board/oak_pd/gpio.inc @@ -42,7 +42,7 @@ GPIO(USB_C1_CC2_ODL, PIN(A, 8), GPIO_ODR_LOW) GPIO(SLAVE_I2C_SCL, PIN(B, 6), GPIO_INPUT) GPIO(SLAVE_I2C_SDA, PIN(B, 7), GPIO_INPUT) -#ifdef CONFIG_OAK_BOARD_REV_1 +#if BOARD_REV == OAK_REV1 GPIO(EC_INT, PIN(A, 14), GPIO_OUT_HIGH) #else GPIO(EC_INT, PIN(B, 5), GPIO_OUT_HIGH) -- cgit v1.2.1