lib: tizen: fix build error with tizen_defconfig 58/249658/1 accepted/tizen/unified/20201216.215949 submit/tizen/20201216.044245
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 16 Dec 2020 04:33:24 +0000 (13:33 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 16 Dec 2020 04:33:24 +0000 (13:33 +0900)
Fix build error with tizen_defconfig.
tizen_defconfig doesn't support DM_VIDEO.

Change-Id: Ie86a45e97c8d8c4c70e13dfaba70f23b0bdccd93
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
lib/tizen/tizen.c

index 9331d7d..468ad77 100644 (file)
@@ -9,11 +9,13 @@
 #include <malloc.h>
 #include <version.h>
 #include <libtizen.h>
+#ifdef CONFIG_DM_VIDEO
 #include <thor.h>
 #include <video.h>
 #include <video_console.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
+#endif
 
 #include "tizen_logo_16bpp.h"
 #include "tizen_logo_16bpp_gzip.h"
@@ -183,6 +185,7 @@ void draw_thor_progress(unsigned long long int total_file_size,
 }
 #endif
 
+#ifdef CONFIG_DM_VIDEO
 /* XRGB */
 #define PROGRESS_BAR_COLOR     0x0000B3F1
 #define PROGRESS_FRAME_COLOR   0x00F8FBF9
@@ -278,3 +281,4 @@ void thor_status_notify(enum thor_notify_type type, struct thor_notify_data *nd)
                break;
        }
 }
+#endif