再次Cygwin和Grub!差不多了

时间:2013-11-05 22:13:42

标签: makefile cygwin grub

我烧透了每个网页,直到我理解到足以让grgwin上的grub(YEEEEEEEE !!!)...现在make install似乎有一个简单的权限错误,我想这个这里的某些人可能很简单。

GRUB 1.98 - 没错误

我收到了很多mkdir打嗝,我认为这是因为cygdrive被调用(例如:> // cygdrive应该是/)

工作示例

mkdir -p -- /cygdrive/c/posix/cygwin86/opt/cross/grub/etc/grub.d
/bin/sh ../grub-1.98/mkinstalldirs /cygdrive/c/posix/cygwin86/opt/cross/grub/lib/grub

它破裂的地方

mkdir -p -- //cygdrive/c/posix/cygwin86/opt/cross/grub/share/locale/ast/LC_MESSAGES
mkdir: cannot create directory `//cygdrive': Read-only file system
/usr/bin/install: cannot create regular file `//cygdrive/c/posix/cygwin86/opt/cross/grub/share/locale/ast/LC_MESSAGES/grub.mo': No such file or directory

1 个答案:

答案 0 :(得分:0)

GOOOOOOOOOT IT!我决定whatevs修改了make文件和繁荣!

@langs='$(LINGUAS)'; \
    for lang in $$langs; do \
      $(SHELL) $(mkinstalldirs) /cygdrive/c/posix/cygwin86/opt/cross/grub/share/locale/$$lang/LC_MESSAGES; \
      file="po/$$lang.mo"; \
      if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
      $(INSTALL_DATA) $$dir$$file /cygdrive/c/posix/cygwin86/opt/cross/grub/share/locale/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
    done

我只是把它改成了它的路径