how to set env in mm Makefile

Help with using MiniMyth's build system

Moderator: Pablo

Post Reply
warpme
Contributor
Posts: 438
Joined: Fri Aug 26, 2005 8:17 pm

how to set env in mm Makefile

Post by warpme »

Pablo,

I'm writing Makefile for autoinstall of fglrx drivers in mm.
I have following statement in Makefile:

Code: Select all

extract-%.run:
	@mkdir -p $(WORKDIR)
	@cp $(DOWNLOADDIR)/$*.run $(WORKDIR)
	@echo " ==> Building DEB packages from ATI package..."
	@cd $(WORKDIR) ; sh $*.run --buildpkg Ubuntu/8.10
	@cd $(WORKDIR) ; rm -rf $*.run
Launching

Code: Select all

make build
returns:

Code: Select all

 ==> Building DEB packages from ATI package...
Created directory fglrx-install.x23130
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.542..
==================================================
 ATI Technologies Linux Driver Installer/Packager 
==================================================
Generating package: Ubuntu/8.04
Resolving build dependencies...
Unable to resolve  dpkg-checkbuilddeps.  Please manually install and try again.
./packages/Ubuntu/ati-packager.sh: 364: dpkg-architecture: not found
Error: unsupported architecture: 
Removing temporary directory: fglrx-install.x23130
make[2]: *** [extract-ati-driver-installer-8-10-x86.x86_64.run] Error 1
make[2]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/fglrx/fglrx'
make[1]: *** [../../fglrx/fglrx/cookies/main.d/install] Error 2
make[1]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/meta/minimyth'
make: *** [imgdep-main] Error 2
piotro@MiniMyth-Dev:~/Desktop/minimyth-dev/script/meta/minimyth$ 
Launching

Code: Select all

piotro@MiniMyth-Dev:~/Desktop/minimyth-dev/script/fglrx/fglrx/work/main.d$ sh ati-driver-installer-8-10-x86.x86_64.run --buildpkg Ubuntu/8.10
runs OK,
so it looks like environment is not properly set for ati binary extraction process when GAR launches extraction process.

May You hint me hot to do this in GAR Makefile ?
Post Reply