mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-10-06 06:12:19 +00:00
3d83efbce9
Commit cbe5cdfcd
changed config.mk and arch/sandbox/cpu/Makefile
to use -idirafter instead of -I and remove -nostdinc.
But
* Sandbox-specific code dirties config.mk
* os.c is compiled without such compiler flags as:
-Wall -Wstrict-prototypes -Wno-format-security
-fno-builtin -ffreestanding -fno-stack-protector
-fstack-usage -Wno-format-nonliteral
This commit use -idirafter and remove the -nostdinc
differently and more simply.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
16 lines
464 B
Makefile
16 lines
464 B
Makefile
#
|
|
# Copyright (c) 2011 The Chromium OS Authors.
|
|
#
|
|
# (C) Copyright 2000-2003
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-y := cpu.o os.o start.o state.o
|
|
|
|
# os.c is build in the system environment, so needs standard includes
|
|
$(obj)os.o: CFLAGS := $(filter-out -nostdinc,\
|
|
$(patsubst -I%,-idirafter%,$(CFLAGS)))
|
|
$(obj).depend.os: CPPFLAGS := $(filter-out -nostdinc,\
|
|
$(patsubst -I%,-idirafter%,$(CPPFLAGS)))
|