diff --git a/fusesoc/main.py b/fusesoc/main.py
index <HASH>..<HASH> 100644
--- a/fusesoc/main.py
+++ b/fusesoc/main.py
@@ -156,7 +156,7 @@ def add_library(cm, args):
     name = args.name
     library['sync-uri'] = vars(args)['sync-uri']
     if args.location:
-        library['location'] = args.location
+        library['location'] = os.path.abspath(args.location)
     if args.no_auto_sync:
         library['auto-sync'] = False
Use absolute path for location in library add