mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 02:15:14 +00:00
The application may need to read/write/erase the flash memory, but we not want console users to do so. This CL adds CONFIG_FLASH_PHYSICAL, which allows the higher-level CONFIG_FLASH to be undefined while still providing the chip-specific flash_physical_* accessor functions. There aren't many board.h files that needed changes, since CONFIG_FLASH_PHYSICAL is enabled by default, just like CONFIG_FLASH. BUG=chrome-os-partner:57408 BRANCH=none TEST=make buildall; try on Gru with and without CR50_DEV=1 See that it still boots, updates, wipes, restores, etc. without linking common/flash.o in the production image; and that the flash commands are still there in the dev build. Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: I7eb1bbcb414b1c70ee427c4fcb5cea899dbb9e93 Reviewed-on: https://chromium-review.googlesource.com/391188 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
30 lines
881 B
Makefile
30 lines
881 B
Makefile
# -*- makefile -*-
|
|
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
#
|
|
# LM4 chip specific files build
|
|
#
|
|
|
|
# LM4 SoC has a Cortex-M4F ARM core
|
|
CORE:=cortex-m
|
|
# Allow the full Cortex-M4 instruction set
|
|
CFLAGS_CPU+=-march=armv7e-m -mcpu=cortex-m4
|
|
|
|
# Required chip modules
|
|
chip-y=clock.o gpio.o hwtimer.o jtag.o system.o uart.o
|
|
|
|
# Optional chip modules
|
|
chip-$(CONFIG_ADC)+=adc.o chip_temp_sensor.o
|
|
chip-$(CONFIG_EEPROM)+=eeprom.o
|
|
chip-$(CONFIG_FANS)+=fan.o
|
|
chip-$(CONFIG_FLASH_PHYSICAL)+=flash.o
|
|
chip-$(CONFIG_I2C)+=i2c.o
|
|
chip-$(CONFIG_LPC)+=lpc.o
|
|
chip-$(CONFIG_PECI)+=peci.o
|
|
# pwm functions are implemented with the fan functions
|
|
chip-$(CONFIG_PWM)+=pwm.o fan.o
|
|
chip-$(CONFIG_SPI)+=spi.o
|
|
chip-$(CONFIG_WATCHDOG)+=watchdog.o
|
|
chip-$(HAS_TASK_KEYSCAN)+=keyboard_raw.o
|