X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=include%2Fprereq-build.mk;h=e90c3157b050a5e1ebc9097ac6855f5dcf799480;hb=bb9c5ecf26a93fc4d42858e09a805dcf4547c32c;hp=a6de9b270aa74d784e70071055cdd1ae10c0d517;hpb=432ce85854aea17f9383519db1c2d3a8307c0760;p=openwrt-10.03%2F.git diff --git a/include/prereq-build.mk b/include/prereq-build.mk index a6de9b270..e90c3157b 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -8,6 +8,13 @@ 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