pass in distro and release number to the build for myplc-devel-native
authorMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 26 Oct 2007 21:09:48 +0000 (21:09 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Fri, 26 Oct 2007 21:09:48 +0000 (21:09 +0000)
planetlab.mk

index 92d21ac..0d2d3ef 100644 (file)
@@ -58,7 +58,8 @@ endif
 
 # Figure out whether we are building on i386 or x86_64 host
 HOSTARCH := $(shell uname -i)
-FEDORA := $(shell ./getrelease.sh)
+DISTRO := $(shell ./getdistro.sh)
+RELEASE := $(shell ./getrelease.sh)
 
 kernel-$(HOSTARCH)-MODULE := Linux-2.6
 kernel-$(HOSTARCH)-SPEC := scripts/kernel-2.6-planetlab.spec
@@ -412,7 +413,7 @@ MyPLC-devel-RPMBUILD := sudo bash ./rpmbuild.sh
 #
 
 MyPLC-devel-native-MODULE := MyPLC
-MyPLC-devel-native-RPMFLAGS := --define "fedora $(FEDORA)"
+MyPLC-devel-native-RPMFLAGS := --define "distro $(DISTRO)" --define "release $(RELEASE)"
 MyPLC-devel-native-SPEC := myplc-devel-native.spec
 ALL += MyPLC-devel-native