http://downloads.netgear.com/files/GPL/DM111P(B)_v3.29u_src.tar.gz
[bcm963xx.git] / Makefile
index dfb29bd..ee226a0 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -777,7 +777,7 @@ endif
 
 
 buildimage: $(KERNEL_DIR)/vmlinux
-       su --command="cd $(TARGETS_DIR); ./buildFS"
+       sudo su --command="cd $(TARGETS_DIR); ./buildFS"
 #      find $(TARGET_FS) -name CVS | xargs rm -rf
 ifeq ($(strip $(BRCM_KERNEL_ROOTFS)),squashfs)
        #$(HOSTTOOLS_DIR)/mksquashfs $(TARGET_FS) $(PROFILE_DIR)/rootfs.img -noappend -be -always-use-fragments -gzip
@@ -865,7 +865,7 @@ target_clean: sanity_check
        rm -f $(PROFILE_DIR)/$(FLASH_IMAGE_NAME)
        rm -fr $(PROFILE_DIR)/modules
        find targets -name vmlinux -print -exec rm -f "{}" ";"
-       su --command="rm -fr $(TARGET_FS)"
+       sudo su --command="rm -fr $(TARGET_FS)"
 
 hosttools_clean:
        $(MAKE) -C $(HOSTTOOLS_DIR) clean