git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4655
3c298f89-4303-0410-b956-
a3cf2f4a3e73
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