aboutsummaryrefslogtreecommitdiff
path: root/external/common/rules.mk
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2016-01-04 13:23:10 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-01-15 15:04:57 +1100
commit748e38b6203f5e4bc3552e9ec9ae5fc85ca723d8 (patch)
tree52e1a59c055420e2519e61636a82fd12c5ae6349 /external/common/rules.mk
parent77b97a12d91cfd7ffe23276dea35c401e8989f73 (diff)
downloadskiboot-748e38b6203f5e4bc3552e9ec9ae5fc85ca723d8.zip
skiboot-748e38b6203f5e4bc3552e9ec9ae5fc85ca723d8.tar.gz
skiboot-748e38b6203f5e4bc3552e9ec9ae5fc85ca723d8.tar.bz2
external/opal-prd: Use libflash/blocklevel for MTD/file accesses
pnor.c existed before blocklevel, it is time that this code got updated to use the available libraries. Changes include using the blocklevel accessors for MTD reads and writes rather than read() and write() on a file descriptor. This patch also makes use of the arch_flash_init() auto detection of the /dev/mtd device which corresponds to the MTD device exposed by skiboot for access to platform flash. Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/common/rules.mk')
-rw-r--r--external/common/rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/external/common/rules.mk b/external/common/rules.mk
index 356c207..81adddd 100644
--- a/external/common/rules.mk
+++ b/external/common/rules.mk
@@ -42,7 +42,7 @@ arch_clean:
$(ARCH_SRC): | common
$(ARCH_OBJS): common-%.o: common/%.c
- $(Q_CC)$(CROSS_COMPILE)gcc $(CFLAGS) -c $< -o $@
+ $(Q_CC)$(CROSS_COMPILE)gcc $(CFLAGS) $(CPPFLAGS) -c $< -o $@
common-arch_flash.o: $(ARCH_OBJS)
$(Q_LD)$(CROSS_COMPILE)ld $(LDFLAGS) -r $(ARCH_OBJS) -o $@