projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set -mcpu=405 in the default cflags for magicbox
[openwrt.git]
/
include
/
prereq-build.mk
diff --git
a/include/prereq-build.mk
b/include/prereq-build.mk
index
a6de9b2
..
e90c315
100644
(file)
--- a/
include/prereq-build.mk
+++ b/
include/prereq-build.mk
@@
-8,6
+8,13
@@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/prereq.mk
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/prereq.mk
+define Require/non-root
+ [ "$$(shell whoami)" != "root" ]
+endef
+$(eval $(call Require,non-root, \
+ Building OpenWrt as root is not supported! \
+))
+
# Required for the toolchain
define Require/working-make
echo 'all: test' > $(TMP_DIR)/check.mk
# Required for the toolchain
define Require/working-make
echo 'all: test' > $(TMP_DIR)/check.mk
This page took
0.021597 seconds
and
4
git commands to generate.