2012-07-28 02:41:24 +00:00
|
|
|
From 3f40a425e763edfde77a9a6e05ed09b0676d8fa9 Mon Sep 17 00:00:00 2001
|
2008-10-03 18:46:33 +00:00
|
|
|
From: Peter Jones <pjones@cutlet.install.bos.redhat.com>
|
|
|
|
Date: Fri, 3 Oct 2008 14:40:56 -0400
|
2012-07-28 02:41:24 +00:00
|
|
|
Subject: [PATCH 1/7] Fix usage of INSTALLROOT, PREFIX, and LIBDIR.
|
2008-10-03 18:46:33 +00:00
|
|
|
|
|
|
|
I screwed it up last time.
|
|
|
|
---
|
|
|
|
Make.defaults | 6 +++---
|
|
|
|
inc/Makefile | 16 ++++++++--------
|
|
|
|
2 files changed, 11 insertions(+), 11 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/Make.defaults b/Make.defaults
|
2012-07-28 02:41:24 +00:00
|
|
|
index bf162c5..6278fa7 100644
|
2008-10-03 18:46:33 +00:00
|
|
|
--- a/Make.defaults
|
|
|
|
+++ b/Make.defaults
|
2012-07-28 02:41:24 +00:00
|
|
|
@@ -38,8 +38,9 @@
|
2008-10-03 18:46:33 +00:00
|
|
|
# Where to install the package. GNU-EFI will create and access
|
|
|
|
# lib and include under the root
|
|
|
|
#
|
|
|
|
-INSTALLROOT=/usr/local
|
|
|
|
-LIBDIR=lib
|
|
|
|
+INSTALLROOT:= /
|
|
|
|
+PREFIX := /usr/local
|
|
|
|
+LIBDIR := ${PREFIX}/lib
|
|
|
|
|
|
|
|
TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
|
|
|
|
|
2012-07-28 02:41:24 +00:00
|
|
|
@@ -73,7 +74,6 @@ endif
|
2008-10-03 18:46:33 +00:00
|
|
|
|
|
|
|
ifeq ($(ARCH), x86_64)
|
2012-07-28 02:41:24 +00:00
|
|
|
CFLAGS += -mno-red-zone
|
2008-10-03 18:46:33 +00:00
|
|
|
- LIBDIR = lib
|
|
|
|
ifeq ($(HOSTARCH), ia32)
|
|
|
|
ARCH3264 = -m64
|
|
|
|
endif
|
|
|
|
diff --git a/inc/Makefile b/inc/Makefile
|
|
|
|
index 9683be5..71fded5 100644
|
|
|
|
--- a/inc/Makefile
|
|
|
|
+++ b/inc/Makefile
|
|
|
|
@@ -13,15 +13,15 @@ all:
|
|
|
|
clean:
|
|
|
|
|
|
|
|
install:
|
|
|
|
- mkdir -p $(INSTALLROOT)/include/efi
|
|
|
|
- mkdir -p $(INSTALLROOT)/include/efi/protocol
|
|
|
|
- mkdir -p $(INSTALLROOT)/include/efi/$(ARCH)
|
|
|
|
- $(INSTALL) -m 644 *.h $(INSTALLROOT)/include/efi
|
|
|
|
- $(INSTALL) -m 644 protocol/*.h $(INSTALLROOT)/include/efi/protocol
|
|
|
|
- $(INSTALL) -m 644 $(ARCH)/*.h $(INSTALLROOT)/include/efi/$(ARCH)
|
|
|
|
+ mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi
|
|
|
|
+ mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol
|
|
|
|
+ mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
|
|
|
|
+ $(INSTALL) -m 644 *.h $(INSTALLROOT)$(PREFIX)/include/efi
|
|
|
|
+ $(INSTALL) -m 644 protocol/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol
|
|
|
|
+ $(INSTALL) -m 644 $(ARCH)/*.h $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
|
|
|
|
ifeq ($(ARCH),ia64)
|
|
|
|
- mkdir -p $(INSTALLROOT)/include/efi/protocol/ia64
|
|
|
|
- $(INSTALL) -m 644 protocol/ia64/*.h $(INSTALLROOT)/include/efi/protocol/ia64
|
|
|
|
+ mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64
|
|
|
|
+ $(INSTALL) -m 644 protocol/ia64/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(SRCDIR)/../Make.rules
|
|
|
|
--
|
2012-07-28 02:41:24 +00:00
|
|
|
1.7.10.4
|
2008-10-03 18:46:33 +00:00
|
|
|
|